From e3608124fd864e91d21508303346daee5c6816bb Mon Sep 17 00:00:00 2001 From: Pierre Tessier Date: Fri, 22 Mar 2024 14:59:46 -0400 Subject: [PATCH 1/6] add label to PR Signed-off-by: Pierre Tessier --- .github/workflows/label-pr.yml | 60 ++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/label-pr.yml diff --git a/.github/workflows/label-pr.yml b/.github/workflows/label-pr.yml new file mode 100644 index 0000000000..c0b2ae636f --- /dev/null +++ b/.github/workflows/label-pr.yml @@ -0,0 +1,60 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 +# adds a label to a pull request if certain files are changed +name: Label Pull Requests + +on: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + label: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Check for changed files + id: file_changes + uses: dorny/paths-filter@v2 + with: + list-files: shell + filters: | + docsUpdateRequired: + - 'src/flagd/**' + helmUpdateRequired: + - '.env' + - 'docker-compose.yaml' + - 'src/flagd/** + - 'src/grafana/**' + - 'src/otelcollector/**' + - 'src/prometheus/**' + + - name: "Add Label: docs-update-required" + if: steps.file_changes.outputs.docsUpdateRequired == 'true' + uses: actions/github-script@v3 + with: + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + const issue_number = context.issue.number; + github.issues.addLabels({ + issue_number: issue_number, + owner: context.repo.owner, + repo: context.repo.repo, + labels: ['docs-update-required'] + }) + + - name: "Add Label: helm-update-required" + if: steps.file_changes.outputs.helmUpdateRequired == 'true' + uses: actions/github-script@v3 + with: + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + const issue_number = context.issue.number; + github.issues.addLabels({ + issue_number: issue_number, + owner: context.repo.owner, + repo: context.repo.repo, + labels: ['helm-update-required'] + }) + From 5e92d3f9e8b9218a27d1e6d13287da91fc7e1fbb Mon Sep 17 00:00:00 2001 From: Pierre Tessier Date: Fri, 22 Mar 2024 15:01:29 -0400 Subject: [PATCH 2/6] Update label-pr.yml --- .github/workflows/label-pr.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/label-pr.yml b/.github/workflows/label-pr.yml index c0b2ae636f..ad244ee2bd 100644 --- a/.github/workflows/label-pr.yml +++ b/.github/workflows/label-pr.yml @@ -57,4 +57,3 @@ jobs: repo: context.repo.repo, labels: ['helm-update-required'] }) - From defd7cb9c90a50cbef86061b0a54ea26a98a2f87 Mon Sep 17 00:00:00 2001 From: Pierre Tessier Date: Fri, 22 Mar 2024 15:06:39 -0400 Subject: [PATCH 3/6] Update label-pr.yml --- .github/workflows/label-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/label-pr.yml b/.github/workflows/label-pr.yml index ad244ee2bd..ad42685380 100644 --- a/.github/workflows/label-pr.yml +++ b/.github/workflows/label-pr.yml @@ -25,7 +25,7 @@ jobs: helmUpdateRequired: - '.env' - 'docker-compose.yaml' - - 'src/flagd/** + - 'src/flagd/**' - 'src/grafana/**' - 'src/otelcollector/**' - 'src/prometheus/**' From de8b1e8a247a112f1b70581e8b25ac88c008d4ed Mon Sep 17 00:00:00 2001 From: Pierre Tessier Date: Fri, 22 Mar 2024 15:10:47 -0400 Subject: [PATCH 4/6] Delete .github/workflows/label-pr.yml --- .github/workflows/label-pr.yml | 59 ---------------------------------- 1 file changed, 59 deletions(-) delete mode 100644 .github/workflows/label-pr.yml diff --git a/.github/workflows/label-pr.yml b/.github/workflows/label-pr.yml deleted file mode 100644 index ad42685380..0000000000 --- a/.github/workflows/label-pr.yml +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright The OpenTelemetry Authors -# SPDX-License-Identifier: Apache-2.0 -# adds a label to a pull request if certain files are changed -name: Label Pull Requests - -on: - pull_request: - types: [opened, synchronize, reopened] - -jobs: - label: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Check for changed files - id: file_changes - uses: dorny/paths-filter@v2 - with: - list-files: shell - filters: | - docsUpdateRequired: - - 'src/flagd/**' - helmUpdateRequired: - - '.env' - - 'docker-compose.yaml' - - 'src/flagd/**' - - 'src/grafana/**' - - 'src/otelcollector/**' - - 'src/prometheus/**' - - - name: "Add Label: docs-update-required" - if: steps.file_changes.outputs.docsUpdateRequired == 'true' - uses: actions/github-script@v3 - with: - github-token: ${{secrets.GITHUB_TOKEN}} - script: | - const issue_number = context.issue.number; - github.issues.addLabels({ - issue_number: issue_number, - owner: context.repo.owner, - repo: context.repo.repo, - labels: ['docs-update-required'] - }) - - - name: "Add Label: helm-update-required" - if: steps.file_changes.outputs.helmUpdateRequired == 'true' - uses: actions/github-script@v3 - with: - github-token: ${{secrets.GITHUB_TOKEN}} - script: | - const issue_number = context.issue.number; - github.issues.addLabels({ - issue_number: issue_number, - owner: context.repo.owner, - repo: context.repo.repo, - labels: ['helm-update-required'] - }) From cba022176406308b7a0cd73f0baaf6d232526d1e Mon Sep 17 00:00:00 2001 From: Pierre Tessier Date: Fri, 5 Apr 2024 15:09:50 -0400 Subject: [PATCH 5/6] remove old featureflagservice Signed-off-by: Pierre Tessier --- docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 99672b8486..d942454cba 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -247,6 +247,8 @@ services: - KAFKA_SERVICE_ADDR - OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_HTTP} - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + - OTEL_INSTRUMENTATION_KAFKA_EXPERIMENTAL_SPAN_ATTRIBUTES=true + - OTEL_INSTRUMENTATION_MESSAGING_EXPERIMENTAL_RECEIVE_TELEMETRY_ENABLED=true - OTEL_RESOURCE_ATTRIBUTES - OTEL_SERVICE_NAME=frauddetectionservice depends_on: From de571bbf5296f72ea75d385a01c3787833f433f0 Mon Sep 17 00:00:00 2001 From: Pierre Tessier Date: Fri, 5 Apr 2024 16:56:07 -0400 Subject: [PATCH 6/6] use span links Signed-off-by: Pierre Tessier --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb0a4fc579..91a6f4d0f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ the release. ## Unreleased +* [frauddetectionservice] use span links when consuming from Kafka + ([#1501](https://github.com/open-telemetry/opentelemetry-demo/pull/1501)) + ## 1.9.0 * [featureflag] deprecate in favor of flagd