Skip to content

Commit 3c8e9ff

Browse files
dependabot[bot]lzchensrikanthccv
authored andcommitted
Bump werkzeug in /docs/examples/fork-process-model/flask-gunicorn (open-telemetry#3179)
Bumps [werkzeug](https://github.com/pallets/werkzeug) from 1.0.1 to 2.2.3. - [Release notes](https://github.com/pallets/werkzeug/releases) - [Changelog](https://github.com/pallets/werkzeug/blob/main/CHANGES.rst) - [Commits](pallets/werkzeug@1.0.1...2.2.3) --- updated-dependencies: - dependency-name: werkzeug dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Leighton Chen <[email protected]> Co-authored-by: Srikanth Chekuri <[email protected]>
1 parent c757e4a commit 3c8e9ff

File tree

8 files changed

+1367
-4
lines changed

8 files changed

+1367
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10-
## Version 1.16.0/0.37b0 (2023-02-17)
10+
- Add exponential histogram
11+
([#2964](https://github.com/open-telemetry/opentelemetry-python/pull/2964))
12+
13+
## Version 1.16.0/0.37b0 (2023-02-15)
14+
1115
- Change ``__all__`` to be statically defined.
1216
([#3143](https://github.com/open-telemetry/opentelemetry-python/pull/3143))
1317
- Remove the ability to set a global metric prefix for Prometheus exporter
@@ -28,7 +32,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2832
([#3156](https://github.com/open-telemetry/opentelemetry-python/pull/3156))
2933
- deprecate jaeger exporters
3034
([#3158](https://github.com/open-telemetry/opentelemetry-python/pull/3158))
31-
3235
- Create a single resource instance
3336
([#3118](https://github.com/open-telemetry/opentelemetry-python/pull/3118))
3437

exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/metric_exporter/__init__.py

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
ResourceMetrics,
6161
ScopeMetrics,
6262
Sum,
63+
ExponentialHistogram,
6364
)
6465

6566
_logger = getLogger(__name__)
@@ -266,6 +267,40 @@ def _translate_data(
266267
metric.data.is_monotonic
267268
)
268269
pb2_metric.sum.data_points.append(pt)
270+
271+
elif isinstance(metric.data, ExponentialHistogram):
272+
for data_point in metric.data.data_points:
273+
pt = pb2.ExponentialHistogramDataPoint(
274+
attributes=self._translate_attributes(
275+
data_point.attributes
276+
),
277+
time_unix_nano=data_point.time_unix_nano,
278+
start_time_unix_nano=(
279+
data_point.start_time_unix_nano
280+
),
281+
count=data_point.count,
282+
sum=data_point.sum,
283+
positive=pb2.ExponentialHistogramDataPoint.Buckets(
284+
offset=data_point.positive.offset(),
285+
bucket_counts=data_point.positive.bucket_counts,
286+
),
287+
negative=pb2.ExponentialHistogramDataPoint.Buckets(
288+
offset=data_point.negative.offset(),
289+
bucket_counts=data_point.negative.bucket_counts,
290+
),
291+
# positive=data_point.positive,
292+
# negative=data_point.negative,
293+
flags=data_point.flags,
294+
max=data_point.max,
295+
min=data_point.min,
296+
)
297+
pb2_metric.exponential_histogram.aggregation_temporality = (
298+
metric.data.aggregation_temporality
299+
)
300+
pb2_metric.exponential_histogram.data_points.append(
301+
pt
302+
)
303+
269304
else:
270305
_logger.warning(
271306
"unsupported data type %s",

0 commit comments

Comments
 (0)