Skip to content

feat: Android Distro vs Sdk OpenTelemetry naming#458

Merged
abelonogov-ld merged 21 commits intomainfrom
andrey/android-distro-vs-sdk
Apr 3, 2026
Merged

feat: Android Distro vs Sdk OpenTelemetry naming#458
abelonogov-ld merged 21 commits intomainfrom
andrey/android-distro-vs-sdk

Conversation

@abelonogov-ld
Copy link
Copy Markdown
Contributor

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

Summary

Introduces distroAttributes on both iOS and Android Observability plugin classes, enabling MAUI (and other wrappers) to override telemetry.distro.name and telemetry.distro.version while preserving a constant telemetry.sdk.name that always identifies the underlying native SDK.

Motivation

  • telemetry.sdk.name should always reflect the native SDK name and remain constant
  • telemetry.distro.name/version should be overridable by wrappers (e.g. MAUI sets "observability-maui-ios" / "observability-maui-android")
  • The identify GraphQL request was receiving empty resource attributes on Android because it read from options.resourceAttributes (user-provided, defaults to empty) instead of the fully-built OTel resource

Note

Medium Risk
Changes how OpenTelemetry Resource attributes are constructed and propagated into session replay identify payloads, which can affect downstream telemetry labeling and ingestion. No auth/data model changes, but mislabeling or attribute loss could impact observability and tests.

Overview
Updates the Android observability plugin to follow the OpenTelemetry SDK vs distro naming pattern by adding telemetry.distro.name/telemetry.distro.version attributes and avoiding overwriting service.name when building the Resource.

Propagates the final built Resource attributes into LDObserve.context and updates session replay identify events to use these computed attributes (rather than raw options.resourceAttributes), with IdentifyItemPayload refactored to reuse a shared attribute-flattening helper. E2E app code is adjusted to exercise nested span logging/metrics and to tweak example resource attributes.

Written by Cursor Bugbot for commit e36e84b. This will update automatically on new commits. Configure here.

* main:
  chore: release main (#447)
  fix: move Otel testing library out production runtime (#446)
- Adjusted the exclusion rules for OpenTelemetry JARs in LDObservability.Fat.csproj to ensure the main autoconfigure JAR is excluded while re-including the autoconfigure-spi JAR.
- Added a note in build.gradle.kts to clarify the filtering of OpenTelemetry JARs for NuGet packaging.
…i-projects

* andrey/open-telemetry-testing:
  refactor: update OpenTelemetry JAR handling in project files
  chore: release main (#450)
  feat!: Support clicks and custom event tracing (#432)

# Conflicts:
#	sdk/@launchdarkly/mobile-dotnet/observability/LDObservability.Fat.csproj
…utes

* andrey/simpligy-maui-projects:
  doesn't account version
  refactor: update OpenTelemetry JAR handling in project files
  chore: release main (#450)
  simplify maui projects to do not have repetitions
  minus 3 dependency
  address feedback
  revert incubator
  Refactor opentelemetry testing
  Remove instrumentation manager
  renaming to ObservabilityService to match Swift

# Conflicts:
#	sdk/@launchdarkly/mobile-dotnet/observability/Directory.Build.props
* main:
  chore: simplify maui project by removing dependency repetitions (#451)
  fix: Remove 3 dependencies from MAUI Android (3 aar files) (#449)

# Conflicts:
#	sdk/@launchdarkly/mobile-dotnet/android/native/LDObserve/build.gradle.kts
#	sdk/@launchdarkly/mobile-dotnet/observability/Directory.Build.props
@abelonogov-ld abelonogov-ld requested a review from a team as a code owner April 3, 2026 15:19
@abelonogov-ld abelonogov-ld force-pushed the andrey/android-distro-vs-sdk branch from b5c2d8d to 0991ad0 Compare April 3, 2026 15:31
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

* main:
  chore: release main (#455)
  fix: OIDC publishing with npm (#454)
  chore: [SEC-7924] pin third-party GitHub Actions to commit SHAs (#452)
@abelonogov-ld abelonogov-ld merged commit edf968b into main Apr 3, 2026
26 checks passed
@abelonogov-ld abelonogov-ld deleted the andrey/android-distro-vs-sdk branch April 3, 2026 21:41
abelonogov-ld pushed a commit that referenced this pull request Apr 3, 2026
🤖 I have created a release *beep* *boop*
---


<details><summary>launchdarkly-observability-android: 0.35.0</summary>

##
[0.35.0](launchdarkly-observability-android-0.34.1...launchdarkly-observability-android-0.35.0)
(2026-04-03)


### Features

* Android Distro vs Sdk OpenTelemetry naming
([#458](#458))
([edf968b](edf968b))
</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]
> **Low Risk**
> Low risk release bookkeeping only: version bumps and changelog
updates, with no functional code changes in this PR.
> 
> **Overview**
> Bumps `@launchdarkly/observability-android` from `0.34.1` to `0.35.0`
in the release manifest and the Android module’s `gradle.properties`.
> 
> Updates the Android SDK changelog with the `0.35.0` release entry
(feature: Android Distro vs SDK OpenTelemetry naming).
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
5d5da3b. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
abelonogov-ld added a commit that referenced this pull request Apr 3, 2026
* main:
  chore: release main (#459)
  feat: Android Distro vs Sdk OpenTelemetry naming (#458)
  chore: release main (#455)
  fix: OIDC publishing with npm (#454)
  chore: [SEC-7924] pin third-party GitHub Actions to commit SHAs (#452)
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