-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add json logging example #106
base: main
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,7 @@ | |||
<configuration> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use spring-logback.xml
|
||
## Introduction | ||
|
||
todo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copy steps from other pr
- see https://www.elastic.co/guide/en/ecs-logging/java/current/setup.html
- link to new grafana page
endpoint: 0.0.0.0:4317 | ||
http: | ||
endpoint: 0.0.0.0:4318 | ||
filelog/json-elastic: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
filelog/json-elastic: | |
filelog/json-ecs: |
receivers: [ otlp ] | ||
processors: [ batch ] | ||
exporters: [ otlphttp/logs ] | ||
logs/json-elastic: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logs/json-elastic: | |
logs/json-ecs: |
processors: [ batch ] | ||
exporters: [ otlphttp/logs ] | ||
logs/json-elastic: | ||
receivers: [ filelog/json-elastic ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
receivers: [ filelog/json-elastic ] | |
receivers: [ filelog/json-ecs ] |
- name: OTEL_RESOURCE_ATTRIBUTES | ||
value: service.name=dice,service.namespace=shop,service.version=1.1,deployment.environment=staging | ||
- name: OTEL_INSTRUMENTATION_COMMON_MDC_RESOURCE_ATTRIBUTES | ||
value: "service.namespace,service.instance.id,deployment.environment" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we also output service.version
?
@cyrille-leclerc the code already works - automated tests are stell missing