-
Notifications
You must be signed in to change notification settings - Fork 0
Observability
Devendra edited this page Sep 12, 2022
·
3 revisions
How to extract open-telemetry data/metrics from our application, This is also know as auto instrumentation:
- For java Based application:
- Download the latest open-telemetry jar from wget https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar
- Run your Java application as a JAR file, run your application using the following command:
OTEL_EXPORTER_OTLP_ENDPOINT="http://<IP of SigNoz Backend>:4317" OTEL_RESOURCE_ATTRIBUTES=service.name=<app_name> java -javaagent:/path/to/opentelemetry-javaagent.jar -jar <myapp>.jar
- Quarkus based application:
- Below are the properties need to be set in quarkus based application
quarkus.application.name=myservice quarkus.opentelemetry.enabled=true quarkus.opentelemetry.tracer.exporter.otlp.endpoint=http://<IP of SigNoz Backend>:4317 quarkus.log.console.format=%d{HH:mm:ss} %-5p traceId=%X{traceId}, parentId=%X{parentId}, spanId=%X{spanId}, sampled=%X{sampled} [%c{2.}] (%t) %s%e%n quarkus.http.access-log.pattern="...traceId=%{X,traceId} spanId=%{X,spanId}"
- Below are the properties need to be set in quarkus based application
- Python based application:
- for all the three(Flask/Djagno/fastApi) python based application follow these below steps: https://signoz.io/docs/instrumentation/python/