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

feature(backend): adding event logs for otlp endpoints #2427

Conversation

xoscar
Copy link
Collaborator

@xoscar xoscar commented Apr 24, 2023

This PR adds events logs for the otlp server endpoints when receiving spans

Changes

  • Adds the event emitter instance to the ingester module
  • Triggers new event after saving spans to the run object

Fixes

Checklist

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

https://www.loom.com/share/9334810050d44bd59caa392b6921a0d4

@xoscar xoscar self-assigned this Apr 24, 2023
@xoscar xoscar added the backend label Apr 24, 2023
@xoscar xoscar marked this pull request as ready for review April 24, 2023 16:41
Stage: model.StageTrace,
Type: "OTLP_SERVER_RECEIVED_SPANS",
Title: "OTLP server received spans",
Description: fmt.Sprintf("The Tracetest OTLP server received %d spans", spanCount),
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it add any value to include if it was HTTP or GRPC?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good idea, I just added it to the event

@xoscar xoscar merged commit 12464b7 into main Apr 24, 2023
30 checks passed
@xoscar xoscar deleted the 2383-network-improvements-ease-networking-knowledge-needed-to-use-tracetest-2 branch April 24, 2023 19:42
schoren pushed a commit that referenced this pull request Jun 5, 2023
* feature(backend): adding event logs for otlp endpoints

* adding server name to event
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants