-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(trace): catch all traces from collector (#25)
Signed-off-by: GALLLASMILAN <gallas.milan@gmail.com>
- Loading branch information
1 parent
1ebf0c2
commit 0a14b6e
Showing
22 changed files
with
630 additions
and
268 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
NODE_ENV=production | ||
PORT=4318 | ||
PORT=4319 | ||
AUTH_KEY=valid-api-key | ||
FASTIFY_BODY_LIMIT=10485760 | ||
|
||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
BEE_FRAMEWORK_INSTRUMENTATION_METRICS_ENABLED=false | ||
BEE_FRAMEWORK_INSTRUMENTATION_ENABLED=true | ||
PORT=4318 | ||
PORT=4319 | ||
AUTH_KEY=valid-api-key |
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 |
---|---|---|
|
@@ -22,3 +22,4 @@ node_modules | |
|
||
#infra | ||
.env.docker | ||
scripts/open_telemetry_collector/otelcol |
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,33 @@ | ||
#!/bin/bash | ||
# Copyright 2025 IBM Corp. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
set -e | ||
|
||
cd "$(dirname "$0")" | ||
|
||
# Check if the 'otelcol' file already exists | ||
if [ ! -f otelcol ]; then | ||
echo "otelcol file not found. Downloading and extracting..." | ||
|
||
curl --proto '=https' --tlsv1.2 -fOL https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.115.1/otelcol_0.115.1_darwin_arm64.tar.gz | ||
|
||
tar -xvf otelcol_0.115.1_darwin_arm64.tar.gz | ||
|
||
## clean unnecessary files | ||
rm otelcol_0.115.1_darwin_arm64.tar.gz | ||
rm README.MD | ||
else | ||
echo "otelcol file already exists. Skipping download and extraction." | ||
fi |
33 changes: 33 additions & 0 deletions
33
scripts/open_telemetry_collector/otel-collector-config-docker.yaml
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,33 @@ | ||
receivers: | ||
otlp: | ||
protocols: | ||
http: | ||
endpoint: 0.0.0.0:4318 | ||
|
||
exporters: | ||
debug: {} | ||
otlphttp/observe: | ||
endpoint: http://observe_api:4319 | ||
compression: none | ||
tls: | ||
insecure: true | ||
headers: | ||
x-bee-authorization: 'valid-api-key' | ||
|
||
processors: | ||
batch: {} | ||
filter/observe: | ||
traces: | ||
span: | ||
- instrumentation_scope.name != "bee-agent-framework" | ||
memory_limiter: | ||
check_interval: 5s | ||
limit_percentage: 80 | ||
spike_limit_percentage: 25 | ||
|
||
service: | ||
pipelines: | ||
traces/observe: | ||
receivers: [otlp] | ||
processors: [filter/observe, memory_limiter, batch] | ||
exporters: [debug, otlphttp/observe] |
36 changes: 36 additions & 0 deletions
36
scripts/open_telemetry_collector/otel-collector-config-local.yaml
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,36 @@ | ||
receivers: | ||
otlp: | ||
protocols: | ||
http: | ||
endpoint: 0.0.0.0:4318 | ||
|
||
exporters: | ||
debug: {} | ||
otlphttp/observe: | ||
endpoint: http://127.0.0.1:4319 | ||
tls: | ||
insecure: true | ||
headers: | ||
x-bee-authorization: 'valid-api-key' | ||
|
||
extensions: | ||
health_check: | ||
endpoint: http://127.0.0.1:13133 | ||
|
||
processors: | ||
batch: {} | ||
filter/observe: | ||
traces: | ||
span: | ||
- instrumentation_scope.name != "bee-agent-framework" | ||
memory_limiter: | ||
check_interval: 5s | ||
limit_percentage: 80 | ||
spike_limit_percentage: 25 | ||
|
||
service: | ||
pipelines: | ||
traces/observe: | ||
receivers: [otlp] | ||
processors: [filter/observe, memory_limiter, batch] | ||
exporters: [debug, otlphttp/observe] |
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
Oops, something went wrong.