From f0955b28e6ca45c4d9a338bd09ad38290f75e42a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Taveira=20Ara=C3=BAjo?= Date: Thu, 21 Mar 2024 10:23:28 -0700 Subject: [PATCH] feat(collection): add debug endpoint (#208) Allow setting debug endpoint from collection stack --- apps/collection/template.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/apps/collection/template.yaml b/apps/collection/template.yaml index f272691e..e6399f82 100644 --- a/apps/collection/template.yaml +++ b/apps/collection/template.yaml @@ -41,6 +41,10 @@ Metadata: - SourceBucketNames - ContentTypeOverrides - NameOverride + - Label: + default: Debugging Options + Parameters: + - DebugEndpoint Parameters: DataAccessPointArn: @@ -110,6 +114,12 @@ Parameters: Metrics Stream. If empty, no metrics will be collected. Default: 's3://observeinc/cloudwatchmetrics/filters/recommended.yaml' AllowedPattern: "^s3:\/\/.*$" + DebugEndpoint: + Type: String + Description: >- + OpenTelemetry endpoint to send additional telemetry to. + Default: '' + AllowedPattern: "^(http(s)?:\/\/.*)?$" Conditions: EnableConfig: !Not @@ -237,6 +247,7 @@ Resources: - !Ref Topic Parameters: BucketARN: !GetAtt Bucket.Arn + DebugEndpoint: !Ref DebugEndpoint LogGroupNamePrefixes: !Join [",", !Ref LogGroupNamePrefixes] LogGroupNamePatterns: !Join [",", !Ref LogGroupNamePatterns] FilterName: 'observe-logs-subscription'