forked from open-telemetry/opentelemetry-demo
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: decrease stack traces min duration (#35)
* feat: decrease stack traces min duration * docs: add kafka agent modification
- Loading branch information
Showing
6 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Copyright The OpenTelemetry Authors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
|
||
FROM apache/kafka:3.7.0 | ||
|
||
USER root | ||
ARG version=0.4.0 | ||
|
||
USER appuser | ||
|
||
ADD --chown=appuser:appuser https://repo1.maven.org/maven2/co/elastic/otel/elastic-otel-javaagent/$version/elastic-otel-javaagent-$version.jar /tmp/opentelemetry-javaagent.jar | ||
|
||
ENV ELASTIC_OTEL_INFERRED_SPANS_ENABLED=true | ||
ENV ELASTIC_OTEL_SPAN_STACK_TRACE_MIN_DURATION=2 | ||
ENV KAFKA_LISTENERS=PLAINTEXT://0.0.0.0:9092,CONTROLLER://0.0.0.0:9093 | ||
ENV KAFKA_CONTROLLER_QUORUM_VOTERS='[email protected]:9093' | ||
ENV KAFKA_CONTROLLER_LISTENER_NAMES=CONTROLLER | ||
ENV KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT | ||
ENV KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS=0 | ||
ENV KAFKA_PROCESS_ROLES=controller,broker | ||
ENV KAFKA_NODE_ID=1 | ||
ENV KAFKA_METADATA_LOG_SEGMENT_MS=15000 | ||
ENV KAFKA_METADATA_MAX_RETENTION_MS=60000 | ||
ENV KAFKA_METADATA_LOG_MAX_RECORD_BYTES_BETWEEN_SNAPSHOTS=2800 | ||
ENV KAFKA_AUTO_CREATE_TOPICS_ENABLE=true | ||
ENV KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1 | ||
ENV KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR=1 | ||
ENV KAFKA_OPTS="-javaagent:/tmp/opentelemetry-javaagent.jar -Dotel.jmx.target.system=kafka-broker" | ||
ENV CLUSTER_ID=ckjPoprWQzOf0-FuNkGfFQ |