-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathmanifest-otel-javaagent.yml
More file actions
32 lines (31 loc) · 1.51 KB
/
manifest-otel-javaagent.yml
File metadata and controls
32 lines (31 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
applications:
#
# You may want/need to change these to avoid naming conflicts
#
- name: otel-sample-app
instances: 1
path: target/sample-app-spring-boot-4.1.0.jar
buildpack: sap_java_buildpack_jakarta
memory: 256M
random-route: true
env:
# Set LOG_*: true to activate logging of respective field
LOG_SENSITIVE_CONNECTION_DATA: false
LOG_REMOTE_USER: false
LOG_REFERER: false
JBP_CONFIG_COMPONENTS: "jres: ['com.sap.xs.java.buildpack.jre.SAPMachineJRE']"
JBP_CONFIG_SAP_MACHINE_JRE: '{ use_offline_repository: false, version: 17.+ }'
JBP_CONFIG_JAVA_OPTS: >
[from_environment: false, java_opts:
'-javaagent:BOOT-INF/lib/opentelemetry-javaagent-2.23.0.jar
-Dotel.javaagent.extensions=BOOT-INF/lib/cf-java-logging-support-opentelemetry-agent-extension-4.1.0.jar
-Dotel.logs.exporter=cloud-logging
-Dotel.metrics.exporter=cloud-logging,dynatrace
-Dotel.traces.exporter=cloud-logging
-Dotel.instrumentation.logback-appender.experimental.capture-mdc-attributes=*
-Dotel.instrumentation.logback-appender.experimental.capture-key-value-pair-attributes=true
-Dotel.instrumentation.logback-appender.experimental.capture-code-attributes=true
-Dotel.instrumentation.logback-appender.experimental-log-attributes=true
-Dotel.experimental.resource.disabled-keys=process.command_line,process.command_args,process.executable.path
-Dsap.dynatrace.cf.binding.token.name=ingest_token']