From f00ddb3db111c8811076610cf52ee352cff4eda9 Mon Sep 17 00:00:00 2001 From: Ankcorn Date: Wed, 3 Apr 2024 13:36:47 +0100 Subject: [PATCH 1/4] W --- sending-data/platforms/cloudflare/logpush.md | 4 ++-- sending-data/platforms/cloudflare/traces.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sending-data/platforms/cloudflare/logpush.md b/sending-data/platforms/cloudflare/logpush.md index 572b1447a..c17f250e8 100644 --- a/sending-data/platforms/cloudflare/logpush.md +++ b/sending-data/platforms/cloudflare/logpush.md @@ -54,7 +54,7 @@ Use the API Token you created in the previous step to connect your Cloudflare ac ### 3. Enable Logpush on Your Cloudflare Workers -To complete the setup, it's necessary to enable Logpush on your Cloudflare workers. +To complete the setup, it's necessary to enable Logpush on your Cloudflare Workers. Add `logpush = true` to the top level section of your Workers `wrangler.toml` file @@ -71,7 +71,7 @@ route = { pattern = "example.org/*", zone_name = "example.org" } ``` !!! -Learn more about [enabling Logpush on your Cloudflare workers](https://developers.cloudflare.com/workers/observability/logpush/#enable-logging-on-your-worker). +Learn more about [enabling Logpush on your Cloudflare Workers](https://developers.cloudflare.com/workers/observability/logpush/#enable-logging-on-your-worker). !!! ### 4. Using the Cloudflare Workers Logpush integration diff --git a/sending-data/platforms/cloudflare/traces.md b/sending-data/platforms/cloudflare/traces.md index 18282fc3f..b56485609 100644 --- a/sending-data/platforms/cloudflare/traces.md +++ b/sending-data/platforms/cloudflare/traces.md @@ -81,7 +81,7 @@ Get your pulic BASELIME_API_KEY from the [Baselime console](https://console.base SERVICE_NAME = "my-service-name" ``` -Once these steps are completed, distributed traces from your Cloudflare workers application should be available in Baselime to query via the console or the Baselime CLI. +Once these steps are completed, distributed traces from your Cloudflare Workers application should be available in Baselime to query via the console or the Baselime CLI. ![Example Cloudflare Worker Trace](../../../assets/images/illustrations/sending-data/opentelemetry/cf-tracing.png) From 2c942c8f00e0fa97394ee145284cc4f2aae5dd90 Mon Sep 17 00:00:00 2001 From: Ismail D <22240843+Ismaaa@users.noreply.github.com> Date: Sat, 6 Apr 2024 16:00:13 +0200 Subject: [PATCH 2/4] Updated small typo on tux overview docs --- tux/overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tux/overview.md b/tux/overview.md index c3f4a2a49..4e1f1a386 100644 --- a/tux/overview.md +++ b/tux/overview.md @@ -7,7 +7,7 @@ order: -1 --- -Tux is an AI assistant that resolves errors and performance issues in your applications. Tux understands your architecture by leveraging the powers of Baselime to gather context from your telemtry data, and enables you to resolve issues before they become problems. +Tux is an AI assistant that resolves errors and performance issues in your applications. Tux understands your architecture by leveraging the powers of Baselime to gather context from your telemetry data, and enables you to resolve issues before they become problems. [!embed](https://www.youtube.com/watch?v=gcF1XW8aIuQ) From 3cab8ee660cf39405bdc5c6f1ad8ceb067c66c9f Mon Sep 17 00:00:00 2001 From: Maksym Makuch Date: Mon, 8 Apr 2024 17:57:46 +0100 Subject: [PATCH 3/4] * Updates ecs endpoint documentation * Updates k8s helm chart docs --- sending-data/platforms/aws/ecs-logs.md | 14 +++++++++----- sending-data/platforms/kubernetes.md | 4 ++-- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/sending-data/platforms/aws/ecs-logs.md b/sending-data/platforms/aws/ecs-logs.md index be961f71f..a84c9c0ba 100644 --- a/sending-data/platforms/aws/ecs-logs.md +++ b/sending-data/platforms/aws/ecs-logs.md @@ -69,12 +69,13 @@ export function API({ stack }: StackContext) { logging: new ecs.FireLensLogDriver({ options: { "Name": "http", - "Host": "ecs-logs-ingest.baselime.io", + "Host": "events.baselime.io", "Port": "443", "TLS": "on", "format": "json", "retry_limit": "2", "header": `x-api-key ${key}`, + "URI": "/v1/ecs-logs" }, }), } @@ -99,12 +100,13 @@ resource "aws_ecs_task_definition" "example_task" { log_driver = "awsfirelens" options = { "Name" = "http" - "Host" = "ecs-logs-ingest.baselime.io" + "Host" = "events.baselime.io" "Port" = "443" "TLS" = "on" "format" = "json" "retry_limit" = "2" "header" = "x-api-key " + "URI" = "/v1/ecs-logs" } } } @@ -126,12 +128,13 @@ taskDef.addContainer("container", { logging: new ecs.FireLensLogDriver({ options: { "Name": "http", - "Host": "ecs-logs-ingest.baselime.io", + "Host": "events.baselime.io", "Port": "443", "TLS": "on", "format": "json", "retry_limit": "2", "header": `x-api-key `, + "URI": "/v1/ecs-logs" }, }), }); @@ -153,13 +156,14 @@ taskDef.addContainer("container", { "logConfiguration": { "logDriver": "awsfirelens", "options": { - "Host": "ecs-logs-ingest.baselime.io", + "Host": "events.baselime.io", "Name": "http", "Port": "443", "TLS": "on", "format": "json", "header": "x-api-key ", - "retry_limit": "2" + "retry_limit": "2", + "URI": "/v1/ecs-logs" }, "secretOptions": [] } diff --git a/sending-data/platforms/kubernetes.md b/sending-data/platforms/kubernetes.md index 40482e654..77d1e5d40 100644 --- a/sending-data/platforms/kubernetes.md +++ b/sending-data/platforms/kubernetes.md @@ -18,9 +18,9 @@ Obtain your API key from the console [Baselime console](https://console.baselime Next install the Baselime Helm chart ```bash -helm repo add baselime-logs-exporter https://github.com/baselime/helm-charts +helm repo add baselime-logs-exporter https://baselime.github.io/helm-charts helm repo update -helm install baselime-logs-exporter baselime-logs-exporter/baselime-logs-exporter-logs-exporter --values custom-values.yaml +helm install baselime-logs-exporter baselime-logs-exporter/baselime-logs-exporter --values custom-values.yaml ``` --- From 4430d9446e8a1e03c70d803e72784f02a9e8df81 Mon Sep 17 00:00:00 2001 From: Ankcorn Date: Thu, 11 Apr 2024 12:30:10 +0100 Subject: [PATCH 4/4] add docs for otel configuration --- .../platforms/aws/aws-lambda/traces/node.js.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/sending-data/platforms/aws/aws-lambda/traces/node.js.md b/sending-data/platforms/aws/aws-lambda/traces/node.js.md index 9be8631dd..05481ec5f 100644 --- a/sending-data/platforms/aws/aws-lambda/traces/node.js.md +++ b/sending-data/platforms/aws/aws-lambda/traces/node.js.md @@ -18,6 +18,20 @@ For detailed instructions on how to add the tag to for your framework go to the --- +## Configuration + +Our OpenTelemetry SDK can be configured with the following environment variables. For each value other than log level set it to 'true' to turn the feature on. + +| Environment Variable | Description | Default Value | +|----------------------------|--------------------------------------------------------|---------------| +| BASELIME_REQUEST_CAPTURE | Controls capturing of incoming requests | Not set | +| AWS_SDK_INTERNALS | Controls whether AWS SDK internals are logged | Not set | +| BASELIME_CAPTURE_EVENT | Controls capturing of specific events | Not set | +| BASELIME_CAPTURE_RESPONSE | Controls capturing of outgoing responses | Not set | +| OTEL_LOG_LEVEL | Sets the logging level for OpenTelemetry instrumentation. Set to "debug" to see granular diagnostics | Not set | + + + ## Adding custom OpenTelemetry spans To add custom spans to your OpenTelemetry traces, install the `@opentelemetry/api` package.