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

test: create a test app for OpenTelemetry work #1202

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rowanmanning
Copy link
Member

@rowanmanning rowanmanning commented Sep 18, 2024

This creates a test app for the work in #1191.

It illustrates the issues I'm seeing and makes it easier for others to try things out. You can test this wth the following:

In one terminal window, run:

node ./packages/opentelemetry/test/end-to-end/scripts/run.js

This starts a test app on port 4001 which has OpenTelemetry metrics enabled. I've overridden the OpenTelemetry package internals to log metrics to stdout instead of sending to a collector.

Once you've done this, run the following:

curl http://localhost:4001

You should see some metrics get logged. Note two things about them:

  1. There is never a metric logged for the node-fetch request

  2. No custom attributes come through on the logged metrics

CPREL-1169

This creates a test app for the work in #1191. It illustrates the issues
I'm seeing and makes it easier for others to try things out.

You can test this wth the following:

In one terminal window, run:

```
node ./packages/opentelemetry/test/end-to-end/scripts/run.js
```

This starts a test app on port 4001 which has OpenTelemetry metrics
enabled. I've overridden the OpenTelemetry package internals to log
metrics to `stdout` instead of sending to a collector.

Once you've done this, run the following:

```
curl http://localhost:4001
```

You should see some metrics get logged. Note two things about them:

  1. There is never a metric logged for the node-fetch request

  2. No custom attributes come through on the logged metrics
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

Successfully merging this pull request may close these issues.

1 participant