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

fix(agent): datastore headers proto type #3874

Merged
merged 1 commit into from
May 27, 2024
Merged

Conversation

xoscar
Copy link
Collaborator

@xoscar xoscar commented May 27, 2024

This PR fixes the header type for data store, instead of using HTTPHeader with a key-value pair struct, using the map[string]string to make it work

Changes

  • Updates the HTTP header types

Fixes

  • Fixes connection to DS when headers were required (Grafana Cloud Tempo)

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

Copy link

vercel bot commented May 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tracetest ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 27, 2024 9:20pm

@@ -315,7 +315,7 @@ message SumoLogicConfig {

message HttpClientSettings {
string url = 1;
repeated HttpHeader headers = 2;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is wrong, the http triggers use a struct like:

{
 key: string,
 value: string,
}

but Datastores use map[string]string

@xoscar xoscar marked this pull request as ready for review May 27, 2024 21:21
@xoscar xoscar merged commit 750176a into main May 27, 2024
39 checks passed
@xoscar xoscar deleted the fix-datastore-connection-types branch May 27, 2024 21:40
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