Skip to content

Commit a66ed2a

Browse files
authored
Merge branch 'main' into gcp_opt_dep_2
2 parents c8b0206 + 6fd249b commit a66ed2a

File tree

9 files changed

+646
-174
lines changed

9 files changed

+646
-174
lines changed

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)

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
@@ -61,15 +61,14 @@
6161
)
6262
from opentelemetry.sdk.resources import Resource as SDKResource
6363
from opentelemetry.sdk.util.instrumentation import InstrumentationScope
64+
from opentelemetry.test.mock_test_classes import IterEntryPoint
6465
from opentelemetry.trace import (
6566
NonRecordingSpan,
6667
SpanContext,
6768
TraceFlags,
6869
set_span_in_context,
6970
)
7071

71-
from ._common import IterEntryPoint
72-
7372
ENV_ENDPOINT = "http://localhost.env:8080/"
7473
ENV_CERTIFICATE = "/etc/base.crt"
7574
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"

opentelemetry-sdk/tests/test_configurator.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
SamplingResult,
7373
TraceIdRatioBased,
7474
)
75+
from opentelemetry.test.mock_test_classes import IterEntryPoint
7576
from opentelemetry.trace import Link, SpanKind
7677
from opentelemetry.trace.span import TraceState
7778
from opentelemetry.util.types import Attributes
@@ -307,15 +308,6 @@ def generate_trace_id(self):
307308
pass
308309

309310

310-
class IterEntryPoint:
311-
def __init__(self, name, class_type):
312-
self.name = name
313-
self.class_type = class_type
314-
315-
def load(self):
316-
return self.class_type
317-
318-
319311
class TestTraceInit(TestCase):
320312
def setUp(self):
321313
super()

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,10 @@ strict = [
127127
"opentelemetry-sdk/src/opentelemetry/sdk/environment_variables",
128128
"opentelemetry-sdk/src/opentelemetry/sdk/resources",
129129
]
130+
131+
[dependency-groups]
132+
dev = [
133+
"tox",
134+
"tox-uv>=1",
135+
"pre-commit",
136+
]

exporter/opentelemetry-exporter-otlp-proto-http/tests/_common/__init__.py renamed to tests/opentelemetry-test-utils/src/opentelemetry/test/mock_test_classes.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
# pylint: disable=protected-access
16-
1715

1816
class IterEntryPoint:
1917
def __init__(self, name, class_type):

uv.lock

Lines changed: 633 additions & 147 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)