Skip to content

Commit

Permalink
Add PR build and update.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuraag Agrawal committed Aug 14, 2020
1 parent 25c39ba commit b2a00bd
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 4 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on:
pull_request:
branches:
- master

jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 14
- uses: burrunan/gradle-cache-action@v1
name: Cache .gradle
- name: Build with Gradle
run: ./gradlew build
1 change: 0 additions & 1 deletion awsagentprovider/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ tasks {
relocate("io.opentelemetry.internal", "io.opentelemetry.auto.shaded.io.opentelemetry.internal")
relocate("io.opentelemetry.metrics", "io.opentelemetry.auto.shaded.io.opentelemetry.metrics")
relocate("io.opentelemetry.trace", "io.opentelemetry.auto.shaded.io.opentelemetry.trace")
relocate("io.opentelemetry.contrib.auto.annotations", "io.opentelemetry.auto.shaded.io.opentelemetry.contrib.auto.annotations")

// relocate OpenTelemetry API dependency
relocate("io.grpc", "io.opentelemetry.auto.shaded.io.grpc")
Expand Down
4 changes: 2 additions & 2 deletions dependencyManagement/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ val DEPENDENCY_BOMS = listOf(
val DEPENDENCY_SETS = listOf(
DependencySet(
"io.opentelemetry.instrumentation.auto",
"0.7.0-20200804.063403-83",
"0.8.0-20200812.182934-26",
listOf(
"opentelemetry-javaagent",
"opentelemetry-auto-exporter-otlp"
)
),
DependencySet(
"io.opentelemetry",
"0.7.0",
"0.8.0-20200812.153234-21",
listOf(
"opentelemetry-api",
"opentelemetry-extension-trace-propagators",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static void premain(final String agentArgs, final Instrumentation inst) {
public static void agentmain(final String agentArgs, final Instrumentation inst) {
System.setProperty("io.opentelemetry.auto.shaded.io.opentelemetry.trace.spi.TracerProviderFactory",
"com.softwareaws.xray.opentelemetry.exporters.AwsTracerProviderFactory");
System.setProperty("otel.propagators", "xray");
System.setProperty("otel.propagators", "tracecontext,b3single,b3,jaeger,xray,ottracer");
AgentBootstrap.agentmain(agentArgs, inst);
}
}

0 comments on commit b2a00bd

Please sign in to comment.