Skip to content

feat: gateway events#3410

Merged
varshith15 merged 7 commits intomasterfrom
vb/stream_tracing
Feb 25, 2025
Merged

feat: gateway events#3410
varshith15 merged 7 commits intomasterfrom
vb/stream_tracing

Conversation

@varshith15
Copy link
Member

PR adds kafka events to trace events of the stream

@github-actions github-actions bot added go Pull requests that update Go code AI Issues and PR related to the AI-video branch. labels Feb 21, 2025
@codecov
Copy link

codecov bot commented Feb 21, 2025

Codecov Report

Attention: Patch coverage is 0% with 48 lines in your changes missing coverage. Please review.

Project coverage is 32.10172%. Comparing base (62e65f4) to head (2642a19).
Report is 8 commits behind head on master.

Files with missing lines Patch % Lines
server/ai_live_video.go 0.00000% 23 Missing ⚠️
server/ai_mediaserver.go 0.00000% 14 Missing ⚠️
server/ai_process.go 0.00000% 11 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@                 Coverage Diff                 @@
##              master       #3410         +/-   ##
===================================================
- Coverage   32.13630%   32.10172%   -0.03458%     
===================================================
  Files            147         147                 
  Lines          40851       40895         +44     
===================================================
  Hits           13128       13128                 
- Misses         26947       26991         +44     
  Partials         776         776                 
Files with missing lines Coverage Δ
server/ai_process.go 0.58676% <0.00000%> (-0.00546%) ⬇️
server/ai_mediaserver.go 7.11921% <0.00000%> (-0.16893%) ⬇️
server/ai_live_video.go 0.00000% <0.00000%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 62e65f4...2642a19. Read the comment docs.

Files with missing lines Coverage Δ
server/ai_process.go 0.58676% <0.00000%> (-0.00546%) ⬇️
server/ai_mediaserver.go 7.11921% <0.00000%> (-0.16893%) ⬇️
server/ai_live_video.go 0.00000% <0.00000%> (ø)

"pipeline_id": "",
"orchestrator_info": map[string]interface{}{
"address": h.orchestrator.Address().Hex(),
"url": h.orchestrator.ServiceURI().String(),
Copy link
Contributor

Choose a reason for hiding this comment

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

We need the githash of go-livepeer (O) to be propagated here as well -- similarly a githash for the ai-runner in the runner events.

Copy link
Member Author

Choose a reason for hiding this comment

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

will add it in a separate PR

@varshith15 varshith15 requested a review from leszko February 25, 2025 08:21
Copy link
Contributor

@leszko leszko left a comment

Choose a reason for hiding this comment

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

Added one comment, other than that LGTM


var event map[string]interface{}
if err := json.Unmarshal(body, &event); err != nil {
var eventWrapper struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the unit tests are failing because of this change. Please check.

@varshith15 varshith15 merged commit a1d08c1 into master Feb 25, 2025
18 checks passed
@varshith15 varshith15 deleted the vb/stream_tracing branch February 25, 2025 10:28
@varshith15 varshith15 restored the vb/stream_tracing branch February 25, 2025 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Issues and PR related to the AI-video branch. go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants