Skip to content

Commit b2f7f1b

Browse files
committed
review feedback
1 parent 7102d71 commit b2f7f1b

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

logfire/_internal/config.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -972,9 +972,6 @@ def check_token():
972972
endpoint=base_url,
973973
headers=headers,
974974
compression=GrpcCompression.Gzip,
975-
# I'm pretty sure that this line here is redundant,
976-
# and that passing it to the QuietMetricExporter is what matters
977-
# because the PeriodicExportingMetricReader will read it from there.
978975
preferred_temporality=METRICS_PREFERRED_TEMPORALITY,
979976
)
980977
log_exporter = GrpcOTLPLogExporter(
@@ -995,9 +992,6 @@ def check_token():
995992
headers=headers,
996993
session=session,
997994
compression=Compression.Gzip,
998-
# I'm pretty sure that this line here is redundant,
999-
# and that passing it to the QuietMetricExporter is what matters
1000-
# because the PeriodicExportingMetricReader will read it from there.
1001995
preferred_temporality=METRICS_PREFERRED_TEMPORALITY,
1002996
)
1003997
log_exporter = OTLPLogExporter(
@@ -1028,6 +1022,11 @@ def check_token():
10281022
PeriodicExportingMetricReader(
10291023
QuietMetricExporter(
10301024
metric_exporter,
1025+
# NB this could really be retrieved from `metric_exporter` by `QuietMetricExporter`,
1026+
# but it is currently a private attribute on `MetricExporter`, we preferred not to reach
1027+
# inside the otel SDK details.
1028+
#
1029+
# Just make sure it always matches.
10311030
preferred_temporality=METRICS_PREFERRED_TEMPORALITY,
10321031
)
10331032
)

0 commit comments

Comments
 (0)