-
Couldn't load subscription status.
- Fork 2
feat: O11Y-398 - Disable config options implemented #239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Options to disable logs, traces, metrics, and error tracking have been added. `InstrumentationManager` has been refactored for improved clarity and configurability. `DebugLogExporter` and `DebugSpanExporter have been extracted into their own classes. The `TelemetryInspector` now accepts nullable exporters, enabling scenarios where logs are disabled but traces remain enabled, and vice versa
- CompositeMetricExporter created - InMemoryMetricExporter added to TelemetryInspector - DisablingConfigOptions E2E test created
tanderson-ld
approved these changes
Sep 26, 2025
Merged
Vadman97
pushed a commit
that referenced
this pull request
Oct 1, 2025
🤖 I have created a release *beep* *boop* --- <details><summary>launchdarkly-observability-android: 0.9.0</summary> ## [0.9.0](launchdarkly-observability-android-0.8.0...launchdarkly-observability-android-0.9.0) (2025-10-01) ### Features * O11Y-398 - Disable config options implemented ([#239](#239)) ([3548b42](3548b42)) </details> <details><summary>observability: 0.4.3</summary> ## [0.4.3](observability-0.4.2...observability-0.4.3) (2025-10-01) ### Dependencies * The following workspace dependencies were updated * dependencies * highlight.run bumped to 9.22.0 </details> <details><summary>session-replay: 0.4.3</summary> ## [0.4.3](session-replay-0.4.2...session-replay-0.4.3) (2025-10-01) ### Dependencies * The following workspace dependencies were updated * dependencies * highlight.run bumped to 9.22.0 </details> <details><summary>highlight.run: 9.22.0</summary> ## [9.22.0](highlight.run-9.21.1...highlight.run-9.22.0) (2025-10-01) ### Features * add addSessionProperties to RecordSDK ([#247](#247)) ([1969e1a](1969e1a)) * config options to customize privacy classes and selectors ([#241](#241)) ([97c72db](97c72db)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Release new versions across packages, adding highlight.run features and updating dependents; Android SDK gains a config-disabling feature. > > - **Releases**: > - `sdk/highlight-run` → `9.22.0` > - Features: `addSessionProperties` in Record SDK; configurable privacy classes/selectors. > - `sdk/@launchdarkly/observability-android` → `0.9.0` > - Feature: implement disabling of config options. > - `sdk/@launchdarkly/observability` → `0.4.3` > - Dependency: `highlight.run` bumped to `9.22.0`. > - `sdk/@launchdarkly/session-replay` → `0.4.3` > - Dependency: `highlight.run` bumped to `9.22.0`. > - **Version metadata**: > - Update `package.json`, `gradle.properties`, and `.release-please-manifest.json` to new versions. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit b1c0517. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
InstrumentationManagerhas been refactored for improved clarity and configurability.DebugLogExporterandDebugSpanExporterhave been extracted into their own classes.TelemetryInspectornow accepts nullable exporters, enabling scenarios where logs are disabled but traces remain enabled, and vice versaHow did you test this change?
E2E tested
Are there any deployment considerations?
No
Note
Adds disable flags for logs, traces, metrics, and error tracking; refactors InstrumentationManager with new debug/composite exporters and TelemetryInspector updates; introduces E2E tests and test harness improvements.
disableLogs,disableTraces,disableMetrics, anddisableErrorTrackinginInstrumentationManager(skip exporter setup; suppress crash instrumentation; guardrecordError).flush.DebugLogExporter,DebugSpanExporter,DebugMetricExporter, andCompositeMetricExporter; addInMemoryMetricExportersupport.TelemetryInspectorto accept nullablespanExporter/logExporterand includemetricExporter.DisablingConfigOptionsE2ETestvalidating exports toggled by disable flags (logs, spans, metrics, errors).SamplingE2ETestto useTestUtils.waitForTelemetryDataand remove sleeps.TestUtilswith telemetry wait helper.BaseApplication/TestApplicationfor delayed init viarealInit/initForTest, injectablepluginOptions, andtestUrl; setbackendUrl/otlpEndpointfrom mock server.Written by Cursor Bugbot for commit b677223. This will update automatically on new commits. Configure here.