Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin-chappell committed Apr 26, 2024
1 parent a49c6dc commit c15f636
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions app/load/AppLoader.scala
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ class AppLoader extends ApplicationLoader {

def configureTelemetry() = {
sys.Prop.StringProp("otel.service.name").set("Gatehouse")
sys.Prop.StringProp("otel.traces.exporter").set("logging")
sys.Prop.StringProp("otel.metrics.exporter").set("logging")
sys.Prop.StringProp("otel.logs.exporter").set("logging")
sys.Prop.StringProp("otel.traces.exporter").set("logging,otlp")
sys.Prop.StringProp("otel.metrics.exporter").set("none")
sys.Prop.StringProp("otel.logs.exporter").set("none")
sys.Prop.IntProp("otel.metric.export.interval").set("15000")
}

Expand Down
9 changes: 5 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ lazy val root = (project in file("."))
Universal / javaOptions ++= Seq(
"-javaagent:/opt/aws-opentelemetry-agent/aws-opentelemetry-agent.jar",
"-Dotel.service.name=Gatehouse",
"-Dotel.resource.providers.aws.enabled=true",
"-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true",
// "-Dotel.resource.providers.aws.enabled=true",
// "-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true",
"-Dotel.traces.sampler=xray",
"-Dotel.traces.exporter=logging,otlp",
"-Dotel.metrics.exporter=logging",
"-Dotel.logs.exporter=logging,otlp",
"-Dotel.metrics.exporter=none",
"-Dotel.logs.exporter=none",
"-Dotel.javaagent.debug=true",
// s"-Dotel.javaagent.configuration-file=${baseDirectory.value}/conf/telemetry.conf",
"-Dpidfile.path=/dev/null",
Expand All @@ -46,6 +46,7 @@ lazy val root = (project in file("."))
"io.opentelemetry" % "opentelemetry-api" % "1.37.0",
"io.opentelemetry" % "opentelemetry-sdk" % "1.37.0",
"io.opentelemetry" % "opentelemetry-exporter-logging" % "1.37.0",
"io.opentelemetry" % "opentelemetry-exporter-otlp" % "1.37.0",
"io.opentelemetry" % "opentelemetry-sdk-extension-autoconfigure" % "1.37.0",
"io.opentelemetry.semconv" % "opentelemetry-semconv" % "1.25.0-alpha",
// "io.opentelemetry" % "opentelemetry-sdk-extension-aws" % "1.19.0",
Expand Down

0 comments on commit c15f636

Please # to comment.