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

client: Send telemetry events with Content-Type: application/json #18886

Merged

Conversation

maxdeviant
Copy link
Member

This PR updates the telemetry events sent to collab to use Content-Type: application/json instead of Content-Type: text/plain.

The POST bodies are JSON, so application/json is the correct MIME type.

I suspect the text/plain is a remnant from when the events were still going through Vercel.

Release Notes:

  • N/A

@maxdeviant maxdeviant self-assigned this Oct 9, 2024
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Oct 9, 2024
@maxdeviant maxdeviant merged commit b0a9005 into main Oct 9, 2024
9 checks passed
@maxdeviant maxdeviant deleted the marshall/send-telemetry-events-as-application-json branch October 9, 2024 00:25
@wolffiex
Copy link
Contributor

wolffiex commented Oct 9, 2024

Alternative take with less abstraction: #18890

KevinNitroG pushed a commit to KevinNitroG/zed that referenced this pull request Oct 9, 2024
…ed-industries#18886)

This PR updates the telemetry events sent to collab to use
`Content-Type: application/json` instead of `Content-Type: text/plain`.

The POST bodies are JSON, so `application/json` is the correct MIME
type.

I suspect the `text/plain` is a remnant from when the events were still
going through Vercel.

Release Notes:

- N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants