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

Add Telemetry #49

Merged
merged 4 commits into from
Dec 31, 2024
Merged

Add Telemetry #49

merged 4 commits into from
Dec 31, 2024

Conversation

CahidArda
Copy link
Collaborator

Adds telemetry headers to workflow requests.

Copy link

linear bot commented Dec 23, 2024

routeFunction,
{
sdk: SDK_TELEMETRY,
platform: "cloudflare",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't we have runtime here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no process object in cloudflare. I couldn't find an equivalent

{
sdk: SDK_TELEMETRY,
platform: "express",
runtime: `node@${process.version}`,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How can we make sure it's node? It can also be bun etc... can we somehow detect that?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This applies to all the configs

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fahreddinozcan
Copy link
Collaborator

I think we can change platform -> framework. Imo hono is not a platform etc. If we can collect if the usage is on cloudflare/vercel etc. we can write that to platform

@fahreddinozcan
Copy link
Collaborator

The user should be able to opt out of telemetry logging, but it can be enabled by default

@CahidArda CahidArda merged commit c534220 into main Dec 31, 2024
19 checks passed
@CahidArda CahidArda deleted the DX-1461-telemetry branch December 31, 2024 07:58
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.

2 participants