Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[META 882] Check classic and OTel agents against serverless #305

Closed
obltmachine opened this issue Jul 30, 2024 · 1 comment
Closed

[META 882] Check classic and OTel agents against serverless #305

obltmachine opened this issue Jul 30, 2024 · 1 comment
Assignees

Comments

@obltmachine
Copy link

See meta issue and spec for the description and details:

@trentm trentm self-assigned this Jul 30, 2024
@trentm
Copy link
Member

trentm commented Jul 30, 2024

I tested a simple example script instrumented with the OTel distro for Node.js
against a serverless deployment using 3 different flavours of encoding the
OTEL_EXPORTER_OTLP_HEADERS value (see specific values below):

cd elastic-otel-node
npm ci
cd examples/

export OTEL_EXPORTER_OTLP_ENDPOINT="...REDACTED serverless endpoint URL..."

OTEL_SERVICE_NAME=example-a OTEL_EXPORTER_OTLP_HEADERS="Authorization=ApiKey a1Q0REDACTEDdLdjJGZw==" \
    node -r @elastic/opentelemetry-node just-http-request.js
OTEL_SERVICE_NAME=example-b OTEL_EXPORTER_OTLP_HEADERS="Authorization=ApiKey%20a1Q0REDACTEDdLdjJGZw==" \
    node -r @elastic/opentelemetry-node just-http-request.js
OTEL_SERVICE_NAME=example-c OTEL_EXPORTER_OTLP_HEADERS="Authorization=ApiKey%20a1Q0REDACTEDdLdjJGZw%3D%3D" \
    node -r @elastic/opentelemetry-node just-http-request.js

They were all successful against an Elastic serverless deployment:

Screenshot 2024-07-30 at 12 36 42 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants