Skip to content

Commit 35a12f8

Browse files
fix: add ApiKey prefix to otlp header (#7063) (#7088)
* fix: add ApiKey prefix to otlp header * chore: add changelog (cherry picked from commit 856dc79) Co-authored-by: Roger Coll <[email protected]>
1 parent 88946e8 commit 35a12f8

File tree

7 files changed

+38
-6
lines changed

7 files changed

+38
-6
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Kind can be one of:
2+
# - breaking-change: a change to previously-documented behavior
3+
# - deprecation: functionality that is being removed in a later release
4+
# - bug-fix: fixes a problem in a previous version
5+
# - enhancement: extends functionality but does not break or fix existing behavior
6+
# - feature: new functionality
7+
# - known-issue: problems that we are aware of in a given version
8+
# - security: impacts on the security of a product or a user’s deployment.
9+
# - upgrade: important information for someone upgrading from a prior version
10+
# - other: does not fit into any of the other categories
11+
kind: enhancement
12+
13+
# Change summary; a 80ish characters long description of the change.
14+
summary: add ApiKey prefix to MOTel host configurations
15+
16+
# Long description; in case the summary is not enough to describe the change
17+
# this field accommodate a description without length limits.
18+
# NOTE: This field will be rendered only for breaking-change and known-issue kinds at the moment.
19+
#description:
20+
21+
# Affected component; usually one of "elastic-agent", "fleet-server", "filebeat", "metricbeat", "auditbeat", "all", etc.
22+
component: "elastic-agent"
23+
24+
# PR URL; optional; the PR number that added the changeset.
25+
# If not present is automatically filled by the tooling finding the PR where this changelog fragment has been added.
26+
# NOTE: the tooling supports backports, so it's able to fill the original PR number instead of the backport PR number.
27+
# Please provide it if you are adding a fragment for a different PR.
28+
pr: https://github.com/elastic/elastic-agent/pull/7063
29+
30+
# Issue URL; optional; the GitHub issue related to this changeset (either closes or is part of).
31+
# If not present is automatically filled by the tooling with the issue linked to the PR number.
32+
#issue: https://github.com/owner/repo/1234

internal/pkg/otel/samples/darwin/managed_otlp/logs_metrics_traces.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ exporters:
8181
otlp/ingest:
8282
endpoint: ${env:ELASTIC_OTLP_ENDPOINT}
8383
headers:
84-
Authorization: ${env:ELASTIC_API_KEY}
84+
Authorization: ApiKey ${env:ELASTIC_API_KEY}
8585

8686
service:
8787
extensions: [file_storage]

internal/pkg/otel/samples/darwin/managed_otlp/platformlogs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ exporters:
5656
otlp/ingest:
5757
endpoint: ${env:ELASTIC_OTLP_ENDPOINT}
5858
headers:
59-
Authorization: ${env:ELASTIC_API_KEY}
59+
Authorization: ApiKey ${env:ELASTIC_API_KEY}
6060

6161
service:
6262
extensions: [file_storage]

internal/pkg/otel/samples/darwin/managed_otlp/platformlogs_hostmetrics.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ exporters:
7676
otlp/ingest:
7777
endpoint: ${env:ELASTIC_OTLP_ENDPOINT}
7878
headers:
79-
Authorization: ${env:ELASTIC_API_KEY}
79+
Authorization: ApiKey ${env:ELASTIC_API_KEY}
8080

8181
service:
8282
extensions: [file_storage]

internal/pkg/otel/samples/linux/managed_otlp/logs_metrics_traces.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ exporters:
8888
otlp/ingest:
8989
endpoint: ${env:ELASTIC_OTLP_ENDPOINT}
9090
headers:
91-
Authorization: ${env:ELASTIC_API_KEY}
91+
Authorization: ApiKey ${env:ELASTIC_API_KEY}
9292

9393
service:
9494
extensions: [file_storage]

internal/pkg/otel/samples/linux/managed_otlp/platformlogs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ exporters:
5656
otlp/ingest:
5757
endpoint: ${env:ELASTIC_OTLP_ENDPOINT}
5858
headers:
59-
Authorization: ${env:ELASTIC_API_KEY}
59+
Authorization: ApiKey ${env:ELASTIC_API_KEY}
6060

6161
service:
6262
extensions: [file_storage]

internal/pkg/otel/samples/linux/managed_otlp/platformlogs_hostmetrics.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ exporters:
8383
otlp/ingest:
8484
endpoint: ${env:ELASTIC_OTLP_ENDPOINT}
8585
headers:
86-
Authorization: ${env:ELASTIC_API_KEY}
86+
Authorization: ApiKey ${env:ELASTIC_API_KEY}
8787

8888
service:
8989
extensions: [file_storage]

0 commit comments

Comments
 (0)