generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: propagate
Publish
caller through all pubsub metrics (#2231)
Previously, only `ftl.pubsub.published` had the caller attribute. This PR adds caller to the rest of the pubsub metrics and also slightly restructures the topic name/ref logging to be more consistent with the rest of this file ``` Metric #0 Descriptor: -> Name: ftl.pubsub.published -> Description: the number of times that an event is published to a topic -> Unit: 1 -> DataType: Sum -> IsMonotonic: true -> AggregationTemporality: Cumulative NumberDataPoints #0 Data point attributes: -> ftl.module.name: Str(echo) -> ftl.pubsub.publish.caller.verb.ref: Str(echo.Echo) -> ftl.pubsub.topic.ref: Str(echo.echotopic) -> ftl.status.succeeded: Bool(true) StartTimestamp: 2024-08-01 01:19:43.556864 +0000 UTC Timestamp: 2024-08-01 01:20:08.558236 +0000 UTC Value: 1 Metric #1 Descriptor: -> Name: ftl.pubsub.sink.called -> Description: the number of times that a pubsub event has been enqueued to asynchronously send to a subscriber -> Unit: 1 -> DataType: Sum -> IsMonotonic: true -> AggregationTemporality: Cumulative NumberDataPoints #0 Data point attributes: -> ftl.pubsub.publish.caller.verb.ref: Str(echo.Echo) -> ftl.pubsub.sink.module.name: Str(echo) -> ftl.pubsub.sink.ref: Str(echo.echoSinkOne) -> ftl.pubsub.subscription.module.name: Str(echo) -> ftl.pubsub.subscription.ref: Str(echo.sub) -> ftl.pubsub.topic.module.name: Str(echo) -> ftl.pubsub.topic.ref: Str(echo.echotopic) ``` Issue: #2194
- Loading branch information
Showing
8 changed files
with
56 additions
and
19 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
backend/controller/sql/schema/20240731230343_create_topic_events_caller.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
-- migrate:up | ||
|
||
ALTER TABLE topic_events | ||
ADD COLUMN caller TEXT; | ||
|
||
-- migrate:down |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.