-
Notifications
You must be signed in to change notification settings - Fork 128
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 example for OTLP logging via stdout and k8s #547
base: main
Are you sure you want to change the base?
Conversation
logging-k8s-stdout-otlp-json/otel-collector-otlpjson-pipeline.png
Outdated
Show resolved
Hide resolved
logging-k8s-stdout-otlp-json/otel-collector-otlpjson-pipeline.png
Outdated
Show resolved
Hide resolved
@trask can you take a look? |
exporters: [ otlphttp/metrics ] | ||
logs/raw_otlpjson: | ||
receivers: [ filelog/otlp-json-logs ] | ||
# (i) no need for processors before the otlpjson connector |
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.
what does (i) mean?
./build.sh | ||
k3d cluster create jsonlogging || k3d cluster start jsonlogging | ||
k3d image import -c jsonlogging dice:1.1-SNAPSHOT |
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.
since this file already has a dependency on the dice image, does it make sense to just inline the one line here?
|
||
- a Java application that uses the experimental | ||
[experimental-otlp/stdout](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#in-development-exporter-selection) logs exporter | ||
- a OTel collector configuration that uses the |
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.
- a OTel collector configuration that uses the | |
- an OpenTelemetry collector configuration that uses the |
The OTel Collector pipeline: | ||
|
||
![OTel Collector Pipeline](otel-collector-otlpjson-pipeline.png) |
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.
The OTel Collector pipeline: | |
![OTel Collector Pipeline](otel-collector-otlpjson-pipeline.png) | |
The OpenTelemetry Collector pipeline: | |
![OpenTelemetry Collector Pipeline](otel-collector-otlpjson-pipeline.png) |
repository: grafana/oats | ||
ref: bc2f08c5e55114234cece216290f1580a75a6032 | ||
path: oats | ||
- name: Set up Go |
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.
(sorry, just a nitpicky preference I have)
- name: Set up Go | |
- name: Set up Go |
with: | ||
go-version: '1.23' | ||
cache-dependency-path: oats/go.sum | ||
- name: Run acceptance tests |
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.
- name: Run acceptance tests | |
- name: Run acceptance tests |
cache-dependency-path: oats/go.sum | ||
- name: Run acceptance tests | ||
run: .github/scripts/run-acceptance-tests.sh | ||
- name: upload log file |
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.
- name: upload log file | |
- name: upload log file |
# renovate: datasource=github-releases depName=opentelemetry-java-instrumentation packageName=open-telemetry/opentelemetry-java-instrumentation | ||
ENV OPENTELEMETRY_JAVA_INSTRUMENTATION_VERSION=v2.10.0 | ||
|
||
ADD build/libs/*SNAPSHOT.jar ./app.jar |
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.
what do you think about adding the ../gradlew assemble
here, and then I think could remove it from (the global) run-acceptance-tests.sh
file?
"customManagers": [ | ||
{ | ||
"customType": "regex", | ||
"description": "Update _VERSION variables in Dockerfiles", | ||
"fileMatch": [ | ||
"(^|/|\\.)Dockerfile$", | ||
"(^|/)Dockerfile\\.[^/]*$" | ||
], | ||
"matchStrings": [ | ||
"# renovate: datasource=(?<datasource>[a-z-]+?)(?: depName=(?<depName>.+?))? packageName=(?<packageName>.+?)(?: versioning=(?<versioning>[a-z-]+?))?\\s(?:ENV|ARG) .+?_VERSION=(?<currentValue>.+?)\\s" | ||
] | ||
} |
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.
interesting 👍
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.
maybe rename to run-oats-tests.sh
? (and rename workflow to oats-tests.yml
)
Relates open-telemetry/opentelemetry.io#5754