Skip to content
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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

add json logging example #106

wants to merge 2 commits into from

Conversation

zeitlinger
Copy link
Member

@cyrille-leclerc the code already works - automated tests are stell missing

@zeitlinger zeitlinger self-assigned this Sep 17, 2024
@@ -0,0 +1,7 @@
<configuration>
Copy link
Member Author

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
Copy link
Member Author

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

endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
filelog/json-elastic:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
filelog/json-elastic:
filelog/json-ecs:

receivers: [ otlp ]
processors: [ batch ]
exporters: [ otlphttp/logs ]
logs/json-elastic:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
logs/json-elastic:
logs/json-ecs:

processors: [ batch ]
exporters: [ otlphttp/logs ]
logs/json-elastic:
receivers: [ filelog/json-elastic ]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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"

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants