Skip to content

Commit

Permalink
Merge pull request #40 from middleware-labs/exporter
Browse files Browse the repository at this point in the history
Update version, event type for App Start & resource attributes in string
  • Loading branch information
Archish27 authored Feb 2, 2024
2 parents 1c217b3 + 5ff3de9 commit bb268ae
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

mavenPublishing {
coordinates("io.github.middleware-labs", "android-sdk", "1.0.8")
coordinates("io.github.middleware-labs", "android-sdk", "1.0.9")

pom {
name = "Middleware Android RUM SDK"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ private Resource createMiddlewareResource() {
resourceBuilder.put("project.name", builder.projectName);
resourceBuilder.put("mw_agent", true);
resourceBuilder.put("mw.account_key", builder.rumAccessToken);
resourceBuilder.put("browser.trace", true);
resourceBuilder.put(BROWSER_MOBILE.getKey(), true);
resourceBuilder.put("browser.trace", "true");
resourceBuilder.put(BROWSER_MOBILE.getKey(), "true");
return resourceBuilder.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import static io.middleware.android.sdk.utils.Constants.COMPONENT_APPSTART;
import static io.middleware.android.sdk.utils.Constants.COMPONENT_KEY;
import static io.middleware.android.sdk.utils.Constants.EVENT_TYPE;

import io.opentelemetry.android.instrumentation.startup.AppStartupTimer;
import io.opentelemetry.api.trace.Span;
Expand Down Expand Up @@ -34,7 +35,9 @@ public void recordInitializationSpans(ConfigFlags flags, Tracer delegateTracer)
spanName ->
delegateTracer
.spanBuilder(spanName)
.setAttribute(COMPONENT_KEY, COMPONENT_APPSTART);
.setAttribute(COMPONENT_KEY, COMPONENT_APPSTART)
.setAttribute(EVENT_TYPE, "app_activity");


Span overallAppStart = startupTimer.start(tracer);
Span span =
Expand Down

0 comments on commit bb268ae

Please sign in to comment.