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

Added v7 and OpenTelemetry Stream support #181

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ribejara-te
Copy link

No description provided.

@ribejara-te
Copy link
Author

Comment on lines +15 to +24
type Stream struct {
ID string `json:"id,omitempty"`
Enabled bool `json:"enabled,omitempty"`
Type string `json:"type,omitempty"`
EndpointType string `json:"endpointType,omitempty"`
StreamEndpointUrl string `json:"streamEndpointUrl,omitempty"`
DataModelVersion string `json:"dataModelVersion,omitempty"`
TestMatch []StreamTestMatch `json:"testMatch,omitempty"`
TagMatch []StreamTagMatch `json:"tagMatch,omitempty"`
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Was it intentional to omit these fields:

  • filters
  • exporterConfig
  • customHeaders

if sc.c.Limiter != nil {
sc.c.Limiter.Wait()
}
endpoint := sc.c.APIEndpoint + path + ".json"
Copy link
Contributor

Choose a reason for hiding this comment

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

We won't want the .json for v7

Suggested change
endpoint := sc.c.APIEndpoint + path + ".json"
endpoint := sc.c.APIEndpoint + path

@cdetsica-te
Copy link

@ribejara-te @pcortada-te ^^ just in case you missed this.

BTW @antonjim-te has some thoughts too to allow for traces in this too.

StreamEndpointUrl string `json:"streamEndpointUrl,omitempty"`
DataModelVersion string `json:"dataModelVersion,omitempty"`
TestMatch []StreamTestMatch `json:"testMatch,omitempty"`
TagMatch []StreamTagMatch `json:"tagMatch,omitempty"`
Copy link

@antonjim-te antonjim-te Nov 6, 2024

Choose a reason for hiding this comment

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

Suggested change
TagMatch []StreamTagMatch `json:"tagMatch,omitempty"`
TagMatch []StreamTagMatch `json:"tagMatch,omitempty"`
Signal string `json:"signal,omitempty"`
CustomHeaders map[string]string `json:"customHeaders,omitempty"`

We are going to need them

  • signal to selected between trace and metric
  • customHeaders to add the authentication headers

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.

4 participants