Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions collector/config.combined.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
receivers:
otlp:
protocols:
grpc:
endpoint: "localhost:4317"
http:
endpoint: "localhost:4318"
telemetryapireceiver:
types: ["platform", "function", "extension"]

processors:
batch:
# Jaeger (classic) rejects non-scalar tags (arrays/maps). Drop array attributes
# (process.command_args, aws.log.group.names, process.tags) to prevent "invalid tag type" 500s.
# If you need these values, stringify arrays with a transform processor instead of dropping.
attributes/drop_array_tags:
actions:
- key: process.command_args
action: delete
- key: aws.log.group.names
action: delete
- key: process.tags
action: delete
resource/drop_array_tags:
attributes:
- key: process.command_args
action: delete
- key: aws.log.group.names
action: delete
- key: process.tags
action: delete

exporters:
logzio/logs:
account_token: "${env:LOGZIO_LOGS_TOKEN}"
region: "${env:LOGZIO_REGION}"
headers:
user-agent: logzio-opentelemetry-layer-logs
logzio/traces:
account_token: "${env:LOGZIO_TRACES_TOKEN}"
region: "${env:LOGZIO_REGION}"
headers:
user-agent: logzio-opentelemetry-layer-traces
prometheusremotewrite:
endpoint: "https://listener.logz.io:8053"
headers:
Authorization: "Bearer ${env:LOGZIO_METRICS_TOKEN}"
user-agent: logzio-opentelemetry-layer-metrics
target_info:
enabled: false

service:
pipelines:
traces:
receivers: [otlp, telemetryapireceiver]
processors: [resource/drop_array_tags, attributes/drop_array_tags, batch]
exporters: [logzio/traces]
metrics:
receivers: [otlp, telemetryapireceiver]
processors: [batch]
exporters: [prometheusremotewrite]
logs:
receivers: [telemetryapireceiver]
processors: [batch]
exporters: [logzio/logs]
telemetry:
logs:
level: "info"
4 changes: 4 additions & 0 deletions go/build-combined.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ mkdir -p "$BUILD_DIR/combined-layer/extensions"
mkdir -p "$BUILD_DIR/combined-layer/collector-config"
cp "$COLLECTOR_DIR/build/extensions"/* "$BUILD_DIR/combined-layer/extensions/"
cp "$COLLECTOR_DIR/config"* "$BUILD_DIR/combined-layer/collector-config/"
# Prefer the combined production config as the default if present
if [ -f "$COLLECTOR_DIR/config.combined.yaml" ]; then
cp "$COLLECTOR_DIR/config.combined.yaml" "$BUILD_DIR/combined-layer/collector-config/config.yaml"
fi


echo "Step 2: Creating combined layer package..."
Expand Down
5 changes: 5 additions & 0 deletions java/build-combined.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ mkdir -p "$WORKSPACE_DIR/collector-config"
cp "$COLLECTOR_DIR/build/extensions"/* "$WORKSPACE_DIR/extensions/"
cp "$COLLECTOR_DIR/config.yaml" "$WORKSPACE_DIR/collector-config/"

# Prefer the combined production config as the default if present
if [[ -f "$COLLECTOR_DIR/config.combined.yaml" ]]; then
cp "$COLLECTOR_DIR/config.combined.yaml" "$WORKSPACE_DIR/collector-config/config.yaml"
fi

# Include E2E-specific collector config for testing workflows
if [[ -f "$COLLECTOR_DIR/config.e2e.yaml" ]]; then
cp "$COLLECTOR_DIR/config.e2e.yaml" "$WORKSPACE_DIR/collector-config/"
Expand Down
5 changes: 5 additions & 0 deletions nodejs/packages/layer/build-combined.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ mkdir -p "$WORKSPACE_DIR/collector-config"
cp "$COLLECTOR_DIR/build/extensions"/* "$WORKSPACE_DIR/extensions/"
cp "$COLLECTOR_DIR/config.yaml" "$WORKSPACE_DIR/collector-config/"

# Prefer the combined production config as the default if present
if [ -f "$COLLECTOR_DIR/config.combined.yaml" ]; then
cp "$COLLECTOR_DIR/config.combined.yaml" "$WORKSPACE_DIR/collector-config/config.yaml"
fi

# Include E2E-specific collector config for testing workflows
if [ -f "$COLLECTOR_DIR/config.e2e.yaml" ]; then
cp "$COLLECTOR_DIR/config.e2e.yaml" "$WORKSPACE_DIR/collector-config/"
Expand Down
4 changes: 4 additions & 0 deletions python/src/build-combined.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ mkdir -p "$WORKSPACE_DIR/extensions"
mkdir -p "$WORKSPACE_DIR/collector-config"
cp "$COLLECTOR_DIR/build/extensions"/* "$WORKSPACE_DIR/extensions/"
cp "$COLLECTOR_DIR/config.yaml" "$WORKSPACE_DIR/collector-config/"
# Prefer the combined production config as the default if present
if [ -f "$COLLECTOR_DIR/config.combined.yaml" ]; then
cp "$COLLECTOR_DIR/config.combined.yaml" "$WORKSPACE_DIR/collector-config/config.yaml"
fi
# Include E2E-specific collector config for testing workflows
if [ -f "$COLLECTOR_DIR/config.e2e.yaml" ]; then
cp "$COLLECTOR_DIR/config.e2e.yaml" "$WORKSPACE_DIR/collector-config/"
Expand Down
3 changes: 3 additions & 0 deletions ruby/build-combined.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ mkdir -p "$BUILD_DIR/combined-layer/extensions"
mkdir -p "$BUILD_DIR/combined-layer/collector-config"
cp "$COLLECTOR_DIR/build/extensions"/* "$BUILD_DIR/combined-layer/extensions/"
cp "$COLLECTOR_DIR/config.yaml" "$BUILD_DIR/combined-layer/collector-config/"
if [ -f "$COLLECTOR_DIR/config.combined.yaml" ]; then
cp "$COLLECTOR_DIR/config.combined.yaml" "$BUILD_DIR/combined-layer/collector-config/config.yaml"
fi
if [ -f "$COLLECTOR_DIR/config.e2e.yaml" ]; then
cp "$COLLECTOR_DIR/config.e2e.yaml" "$BUILD_DIR/combined-layer/collector-config/"
fi
Expand Down
Loading