Skip to content

Commit 9c574fc

Browse files
authored
Merge pull request #4418 from b1zzu/prometheus-histogram
Add support for histograms to prometheus_tracing
2 parents 42fdde5 + c5d8608 commit 9c574fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/graphql/tracing/prometheus_tracing/graphql_collector.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Tracing
55
class PrometheusTracing < PlatformTracing
66
class GraphQLCollector < ::PrometheusExporter::Server::TypeCollector
77
def initialize
8-
@graphql_gauge = PrometheusExporter::Metric::Summary.new(
8+
@graphql_gauge = PrometheusExporter::Metric::Base.default_aggregation.new(
99
'graphql_duration_seconds',
1010
'Time spent in GraphQL operations, in seconds'
1111
)

0 commit comments

Comments
 (0)