Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions android-agent/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ dependencies {
implementation(project(":instrumentation:screen-orientation"))

testImplementation(libs.opentelemetry.semconv.kotlin)
testImplementation(project(":semconv"))
testImplementation(libs.robolectric)
testImplementation(libs.okhttp.mockwebserver)
testImplementation(libs.androidx.test.core)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/

package io.opentelemetry.android.agent

import io.opentelemetry.android.semconv.AppAttributes
import org.assertj.core.api.Assertions.assertThat
import org.junit.Test

class EndUserClientSemConvTest {
@Test
fun `constants generated from the end-user-client registry are usable`() {
val attributes = setOf(AppAttributes.APP_NAV_DESTINATION, AppAttributes.APP_ENVIRONMENT)
assertThat(attributes.size).isEqualTo(2)
}
}
9 changes: 9 additions & 0 deletions semconv/model/android/events.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
groups:
- id: event.app.nav_started
type: event
name: app.nav_started
stability: development
brief: >
Test event
attributes:
- ref: app.nav.destination
requirement_level: recommended
- id: event.app.screen.longpress
type: event
name: app.screen.longpress
Expand Down
19 changes: 13 additions & 6 deletions semconv/model/android/registry.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
imports:
attribute_groups:
- registry.end_user_client.app
events:
- app.nav_complete
groups:
- id: registry.android.semconv
type: attribute_group
Expand Down Expand Up @@ -114,15 +119,15 @@ groups:
- id: portrait
value: "portrait"
stability: development
brief: The screen is in portrait orientation.
brief: Screen orientation is portrait.
- id: landscape
value: "landscape"
stability: development
brief: The screen is in landscape orientation.
brief: Screen orientation is landscape.
- id: undefined
value: "undefined"
stability: development
brief: The screen orientation could not be determined.
brief: Screen orientation could not be determined.
stability: development
brief: >
The Android screen orientation.
Expand All @@ -138,15 +143,17 @@ groups:
- id: cold
value: "cold"
stability: development
brief: The application started from scratch, with no process or activity reused.
brief: The application started with no existing process in memory prior to app launch
- id: warm
value: "warm"
stability: development
brief: The application process was reused but the activity had to be recreated.
brief: >
The application started with an existing process and application object was already created, but without any user-facing
components like Activities initialized
- id: hot
value: "hot"
stability: development
brief: The application and its activity were already in memory and brought to the foreground.
brief: The application has already been fully initialized previously and this "start" just brings it to the foreground.
stability: development
brief: >
The application start type.
Expand Down
4 changes: 3 additions & 1 deletion semconv/model/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ description: Local semantic conventions for opentelemetry-android.
schema_url: https://opentelemetry.io/schemas/opentelemetry-android/0.1.0
dependencies:
- name: otel
registry_path: https://github.com/open-telemetry/semantic-conventions@v1.41.1[model]
registry_path: https://github.com/open-telemetry/semantic-conventions@v1.43.0[model]
- name: end-user-client
registry_path: https://github.com/bidetofevil/semantic-conventions-end-user-client@v0.3.0-dev[model]