@@ -972,9 +972,6 @@ def check_token():
972
972
endpoint = base_url ,
973
973
headers = headers ,
974
974
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.
978
975
preferred_temporality = METRICS_PREFERRED_TEMPORALITY ,
979
976
)
980
977
log_exporter = GrpcOTLPLogExporter (
@@ -995,9 +992,6 @@ def check_token():
995
992
headers = headers ,
996
993
session = session ,
997
994
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.
1001
995
preferred_temporality = METRICS_PREFERRED_TEMPORALITY ,
1002
996
)
1003
997
log_exporter = OTLPLogExporter (
@@ -1028,6 +1022,11 @@ def check_token():
1028
1022
PeriodicExportingMetricReader (
1029
1023
QuietMetricExporter (
1030
1024
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.
1031
1030
preferred_temporality = METRICS_PREFERRED_TEMPORALITY ,
1032
1031
)
1033
1032
)
0 commit comments