Skip to content

Commit 0da6bd3

Browse files
authored
Merge branch 'main' into hectorhdzg/removelogdata
2 parents 1278a64 + 6fd249b commit 0da6bd3

File tree

51 files changed

+2890
-394
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+2890
-394
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
33
# Ruff version.
4-
rev: v0.6.9
4+
rev: v0.14.1
55
hooks:
66
# Run the linter.
77
- id: ruff

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414

1515
- docs: Added sqlcommenter example
1616
([#4734](https://github.com/open-telemetry/opentelemetry-python/pull/4734))
17+
- build: bump ruff to 0.14.1
18+
([#4782](https://github.com/open-telemetry/opentelemetry-python/pull/4782))
19+
- semantic-conventions: Bump to 1.38.0
20+
([#4791](https://github.com/open-telemetry/opentelemetry-python/pull/4791))
1721
- [BREAKING] Remove LogData and extend SDK LogRecord to have instrumentation scope
1822
([#4676](https://github.com/open-telemetry/opentelemetry-python/pull/4676))
1923

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ For more information about the approver role, see the [community repository](htt
125125

126126
- [Alex Boten](https://github.com/codeboten)
127127
- [Chris Kleinknecht](https://github.com/c24t)
128-
- [Diego Hurtado](https://github.com/ocelotl), Lightstep
128+
- [Diego Hurtado](https://github.com/ocelotl)
129129
- [Owais Lone](https://github.com/owais)
130130
- [Reiley Yang](https://github.com/reyang)
131131
- [Srikanth Chekuri](https://github.com/srikanthccv)

dev-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ psutil==5.9.6
1717
GitPython==3.1.41
1818
pre-commit==3.7.0; python_version >= '3.9'
1919
pre-commit==3.5.0; python_version < '3.9'
20-
ruff==0.6.9
20+
ruff==0.14.1

docs/examples/django/manage.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ def main():
3030
DjangoInstrumentor().instrument()
3131

3232
try:
33-
from django.core.management import execute_from_command_line
33+
from django.core.management import ( # noqa: PLC0415
34+
execute_from_command_line,
35+
)
3436
except ImportError as exc:
3537
raise ImportError(
3638
"Couldn't import Django. Are you sure it's installed and "

exporter/opentelemetry-exporter-otlp-proto-common/src/opentelemetry/exporter/otlp/proto/common/_internal/metrics_encoder/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def _get_temporality(
115115
"CUMULATIVE"
116116
):
117117
_logger.warning(
118-
"Unrecognized OTEL_EXPORTER_METRICS_TEMPORALITY_PREFERENCE"
118+
"Unrecognized OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE"
119119
" value found: "
120120
"%s, "
121121
"using CUMULATIVE",

exporter/opentelemetry-exporter-otlp-proto-grpc/tests/test_otlp_exporter_mixin.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,11 @@
5757
SpanExporter,
5858
SpanExportResult,
5959
)
60+
from opentelemetry.test.mock_test_classes import IterEntryPoint
6061

6162
logger = getLogger(__name__)
6263

6364

64-
class IterEntryPoint:
65-
def __init__(self, name, class_type):
66-
self.name = name
67-
self.class_type = class_type
68-
69-
def load(self):
70-
return self.class_type
71-
72-
7365
# The below tests use this test SpanExporter and Spans, but are testing the
7466
# underlying behavior in the mixin. A MetricExporter or LogExporter could
7567
# just as easily be used.

exporter/opentelemetry-exporter-otlp-proto-http/tests/metrics/test_otlp_metrics_exporter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@
7777
InstrumentationScope as SDKInstrumentationScope,
7878
)
7979
from opentelemetry.test.metrictestutil import _generate_sum
80-
81-
from .._common import IterEntryPoint
80+
from opentelemetry.test.mock_test_classes import IterEntryPoint
8281

8382
OS_ENV_ENDPOINT = "os.env.base"
8483
OS_ENV_CERTIFICATE = "os/env/base.crt"

exporter/opentelemetry-exporter-otlp-proto-http/tests/test_proto_log_exporter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,14 @@
6060
)
6161
from opentelemetry.sdk.resources import Resource as SDKResource
6262
from opentelemetry.sdk.util.instrumentation import InstrumentationScope
63+
from opentelemetry.test.mock_test_classes import IterEntryPoint
6364
from opentelemetry.trace import (
6465
NonRecordingSpan,
6566
SpanContext,
6667
TraceFlags,
6768
set_span_in_context,
6869
)
6970

70-
from ._common import IterEntryPoint
71-
7271
ENV_ENDPOINT = "http://localhost.env:8080/"
7372
ENV_CERTIFICATE = "/etc/base.crt"
7473
ENV_CLIENT_CERTIFICATE = "/etc/client-cert.pem"

exporter/opentelemetry-exporter-otlp-proto-http/tests/test_proto_span_exporter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@
5050
)
5151
from opentelemetry.sdk.trace import _Span
5252
from opentelemetry.sdk.trace.export import SpanExportResult
53-
54-
from ._common import IterEntryPoint
53+
from opentelemetry.test.mock_test_classes import IterEntryPoint
5554

5655
OS_ENV_ENDPOINT = "os.env.base"
5756
OS_ENV_CERTIFICATE = "os/env/base.crt"

0 commit comments

Comments
 (0)