Skip to content

Commit

Permalink
fix metering endpoint for Firehose block streams (#64)
Browse files Browse the repository at this point in the history
* fix metering endpoint for Firehose block stream
* add changelog
  • Loading branch information
fschoell authored Oct 2, 2024
1 parent 3a03037 commit 7c0be0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ If you were at `firehose-core` version `1.0.0` and are bumping to `1.1.0`, you s
* Substreams: fix bad handling of modules with multiple inputs when only one of them is filtered, resulting in bad outputs in production-mode.
* Substreams: fix stalling on some substreams with stores and mappers with different start block numbers on the same stage
* Substreams: fix 'development mode' and LIVE mode executing some modules that should be skipped
* Firehose: fix the endpoint in metering events for block streaming

## v1.6.1

Expand Down
2 changes: 1 addition & 1 deletion firehose/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func New(

meter := dmetering.GetBytesMeter(ctx)
auth := dauth.FromContext(ctx)
metering.Send(ctx, meter, auth.UserID(), auth.APIKeyID(), auth.RealIP(), auth.Meta(), "sf.firehose.v2.Firehose/Block", response)
metering.Send(ctx, meter, auth.UserID(), auth.APIKeyID(), auth.RealIP(), auth.Meta(), "sf.firehose.v2.Firehose/Blocks", response)
}

tracerProvider := otel.GetTracerProvider()
Expand Down

0 comments on commit 7c0be0f

Please sign in to comment.