Skip to content

Commit b9bb1cd

Browse files
author
Jeel Mehta
committed
Adding new environment variable
1 parent 7ee230a commit b9bb1cd

File tree

2 files changed

+5
-3
lines changed
  • terraform/python/ec2/adot-sigv4
  • validator/src/main/resources/expected-data-template/python/ec2/adot-sigv4/logs

2 files changed

+5
-3
lines changed

terraform/python/ec2/adot-sigv4/main.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ resource "null_resource" "main_service_setup" {
166166
export OTEL_EXPORTER_OTLP_LOGS_PROTOCOL=http/protobuf \
167167
export OTEL_LOGS_EXPORTER=otlp \
168168
export OTEL_METRICS_EXPORTER=none \
169-
export OTEL_TRACES_EXPORTER=otlp
169+
export OTEL_TRACES_EXPORTER=otlp \
170+
export OTEL_LOG_LEVEL=CRITICAL \
170171
export OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=https://xray.${var.aws_region}.amazonaws.com/v1/traces \
171172
export OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=https://logs.${var.aws_region}.amazonaws.com/v1/logs \
172173
export OTEL_EXPORTER_OTLP_LOGS_HEADERS=x-aws-log-group=otlp_sigv4_logs,x-aws-log-stream=default \
@@ -291,7 +292,8 @@ resource "null_resource" "remote_service_setup" {
291292
export OTEL_EXPORTER_OTLP_LOGS_PROTOCOL=http/protobuf \
292293
export OTEL_LOGS_EXPORTER=otlp \
293294
export OTEL_METRICS_EXPORTER=none \
294-
export OTEL_TRACES_EXPORTER=otlp
295+
export OTEL_TRACES_EXPORTER=otlp \
296+
export OTEL_LOG_LEVEL=CRITICAL \
295297
export OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=https://xray.${var.aws_region}.amazonaws.com/v1/traces \
296298
export OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=https://logs.${var.aws_region}.amazonaws.com/v1/logs \
297299
export OTEL_EXPORTER_OTLP_LOGS_HEADERS=x-aws-log-group=otlp_sigv4_logs,x-aws-log-stream=default \

validator/src/main/resources/expected-data-template/python/ec2/adot-sigv4/logs/log.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"severityNumber": "^[0-9]+$",
1313
"severityText": "{{severityText}}",
14-
"body": {{&body}},
14+
"body": "{{body}}",
1515
"traceId": "{{traceId}}",
1616
"spanId": "{{spanId}}",
1717
"attributes": {

0 commit comments

Comments
 (0)