Skip to content

chore: silence otlp localhost connection exceptions in e2e tests#474

Merged
abelonogov-ld merged 1 commit intomainfrom
andrey/silent-otlp-exceptions-in-e2e-tests
Apr 17, 2026
Merged

chore: silence otlp localhost connection exceptions in e2e tests#474
abelonogov-ld merged 1 commit intomainfrom
andrey/silent-otlp-exceptions-in-e2e-tests

Conversation

@abelonogov-ld
Copy link
Copy Markdown
Contributor

@abelonogov-ld abelonogov-ld commented Apr 17, 2026

Summary

Silence otlp localhost exception in e2e tests, it is hard to read actual fail with them


Note

Low Risk
Test-only logging configuration change; no production runtime or telemetry behavior changes outside unit test output.

Overview
Android e2e unit tests now load a dedicated Java Util Logging config via Gradle Test task systemProperty("java.util.logging.config.file", ...).

Adds src/test/resources/logging.properties to keep test output readable by turning off noisy OpenTelemetry OTLP exporter loggers (io.opentelemetry.exporter.internal.http.HttpExporter / GrpcExporter) that emit SEVERE stack traces when mock endpoints are unreachable.

Reviewed by Cursor Bugbot for commit 032938f. Bugbot is set up for automated code reviews on this repo. Configure here.

@abelonogov-ld abelonogov-ld requested a review from a team as a code owner April 17, 2026 19:33
@abelonogov-ld abelonogov-ld changed the title chore: silence otlp connection exceptions in e2e tests chore: silence otlp localhost connection exceptions in e2e tests Apr 17, 2026
Copy link
Copy Markdown
Contributor

@beekld beekld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems fine, but we might wanna consider later changing the way we configure the OTLP exporters so they don't even try to send HTTP in tests.

@abelonogov-ld abelonogov-ld merged commit 2d6d9ee into main Apr 17, 2026
28 checks passed
@abelonogov-ld abelonogov-ld deleted the andrey/silent-otlp-exceptions-in-e2e-tests branch April 17, 2026 20:42
abelonogov-ld added a commit that referenced this pull request Apr 18, 2026
* andrey/ld-android2:
  fix
  address feedback
  fix: [SDK-2197] manually register main Activity with session replay (#475)
  chore: silence otlp localhost connection exceptions in e2e tests (#474)
  chore: release main (#470)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants