Skip to content

Commit 4a21b39

Browse files
authored
resource-dector-container: package rename to opentelemetry-resource-detector-containerid (#3536)
* resource-dector-container: package rename Signed-off-by: emdneto <[email protected]> * fix ruff Signed-off-by: emdneto <[email protected]> * change entrypoint Signed-off-by: emdneto <[email protected]> * fix Signed-off-by: emdneto <[email protected]> * fix test Signed-off-by: emdneto <[email protected]> * fix for entrypoint name Signed-off-by: emdneto <[email protected]> * add changelog Signed-off-by: emdneto <[email protected]> --------- Signed-off-by: emdneto <[email protected]>
1 parent 85ea8f3 commit 4a21b39

File tree

18 files changed

+64
-56
lines changed

18 files changed

+64
-56
lines changed

.github/workflows/core_contrib_test_0.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ jobs:
158158
- name: Run tests
159159
run: tox -e py39-test-instrumentation-google-genai-latest -- -ra
160160

161-
py39-test-resource-detector-container:
162-
name: resource-detector-container
161+
py39-test-resource-detector-containerid:
162+
name: resource-detector-containerid
163163
runs-on: ubuntu-latest
164164
timeout-minutes: 30
165165
steps:
@@ -179,7 +179,7 @@ jobs:
179179
run: pip install tox-uv
180180

181181
- name: Run tests
182-
run: tox -e py39-test-resource-detector-container -- -ra
182+
run: tox -e py39-test-resource-detector-containerid -- -ra
183183

184184
py39-test-resource-detector-azure-0:
185185
name: resource-detector-azure-0

.github/workflows/lint_0.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ jobs:
8585
- name: Run tests
8686
run: tox -e lint-instrumentation-google-genai
8787

88-
lint-resource-detector-container:
89-
name: resource-detector-container
88+
lint-resource-detector-containerid:
89+
name: resource-detector-containerid
9090
runs-on: ubuntu-latest
9191
timeout-minutes: 30
9292
steps:
@@ -102,7 +102,7 @@ jobs:
102102
run: pip install tox-uv
103103

104104
- name: Run tests
105-
run: tox -e lint-resource-detector-container
105+
run: tox -e lint-resource-detector-containerid
106106

107107
lint-resource-detector-azure:
108108
name: resource-detector-azure

.github/workflows/test_0.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -636,8 +636,8 @@ jobs:
636636
- name: Run tests
637637
run: tox -e py313-test-instrumentation-google-genai-latest -- -ra
638638

639-
py39-test-resource-detector-container_ubuntu-latest:
640-
name: resource-detector-container 3.9 Ubuntu
639+
py39-test-resource-detector-containerid_ubuntu-latest:
640+
name: resource-detector-containerid 3.9 Ubuntu
641641
runs-on: ubuntu-latest
642642
timeout-minutes: 30
643643
steps:
@@ -653,10 +653,10 @@ jobs:
653653
run: pip install tox-uv
654654

655655
- name: Run tests
656-
run: tox -e py39-test-resource-detector-container -- -ra
656+
run: tox -e py39-test-resource-detector-containerid -- -ra
657657

658-
py310-test-resource-detector-container_ubuntu-latest:
659-
name: resource-detector-container 3.10 Ubuntu
658+
py310-test-resource-detector-containerid_ubuntu-latest:
659+
name: resource-detector-containerid 3.10 Ubuntu
660660
runs-on: ubuntu-latest
661661
timeout-minutes: 30
662662
steps:
@@ -672,10 +672,10 @@ jobs:
672672
run: pip install tox-uv
673673

674674
- name: Run tests
675-
run: tox -e py310-test-resource-detector-container -- -ra
675+
run: tox -e py310-test-resource-detector-containerid -- -ra
676676

677-
py311-test-resource-detector-container_ubuntu-latest:
678-
name: resource-detector-container 3.11 Ubuntu
677+
py311-test-resource-detector-containerid_ubuntu-latest:
678+
name: resource-detector-containerid 3.11 Ubuntu
679679
runs-on: ubuntu-latest
680680
timeout-minutes: 30
681681
steps:
@@ -691,10 +691,10 @@ jobs:
691691
run: pip install tox-uv
692692

693693
- name: Run tests
694-
run: tox -e py311-test-resource-detector-container -- -ra
694+
run: tox -e py311-test-resource-detector-containerid -- -ra
695695

696-
py312-test-resource-detector-container_ubuntu-latest:
697-
name: resource-detector-container 3.12 Ubuntu
696+
py312-test-resource-detector-containerid_ubuntu-latest:
697+
name: resource-detector-containerid 3.12 Ubuntu
698698
runs-on: ubuntu-latest
699699
timeout-minutes: 30
700700
steps:
@@ -710,10 +710,10 @@ jobs:
710710
run: pip install tox-uv
711711

712712
- name: Run tests
713-
run: tox -e py312-test-resource-detector-container -- -ra
713+
run: tox -e py312-test-resource-detector-containerid -- -ra
714714

715-
py313-test-resource-detector-container_ubuntu-latest:
716-
name: resource-detector-container 3.13 Ubuntu
715+
py313-test-resource-detector-containerid_ubuntu-latest:
716+
name: resource-detector-containerid 3.13 Ubuntu
717717
runs-on: ubuntu-latest
718718
timeout-minutes: 30
719719
steps:
@@ -729,10 +729,10 @@ jobs:
729729
run: pip install tox-uv
730730

731731
- name: Run tests
732-
run: tox -e py313-test-resource-detector-container -- -ra
732+
run: tox -e py313-test-resource-detector-containerid -- -ra
733733

734-
pypy3-test-resource-detector-container_ubuntu-latest:
735-
name: resource-detector-container pypy-3.9 Ubuntu
734+
pypy3-test-resource-detector-containerid_ubuntu-latest:
735+
name: resource-detector-containerid pypy-3.9 Ubuntu
736736
runs-on: ubuntu-latest
737737
timeout-minutes: 30
738738
steps:
@@ -748,7 +748,7 @@ jobs:
748748
run: pip install tox-uv
749749

750750
- name: Run tests
751-
run: tox -e pypy3-test-resource-detector-container -- -ra
751+
run: tox -e pypy3-test-resource-detector-containerid -- -ra
752752

753753
py39-test-resource-detector-azure-0_ubuntu-latest:
754754
name: resource-detector-azure-0 3.9 Ubuntu

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6060
([#3474](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3474))
6161
- `opentelemetry-instrumentation-fastapi`: Drop support for FastAPI versions earlier than `0.92`
6262
([#3012](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3012))
63+
- `opentelemetry-resource-detector-container`: rename package name to `opentelemetry-resource-detector-containerid`
64+
([#3536](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3536))
6365

6466
### Added
6567

6668
- `opentelemetry-instrumentation-aiohttp-client` Add support for HTTP metrics
67-
([#3517](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3517))
69+
([#3517](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3517))
6870
- `opentelemetry-instrumentation-httpx` Add support for HTTP metrics
6971
([#3513](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3513))
7072

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ install <https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs>
5252
pip install -e ./instrumentation/opentelemetry-instrumentation-botocore
5353
pip install -e ./instrumentation-genai/opentelemetry-instrumentation-openai-v2
5454
pip install -e ./sdk-extension/opentelemetry-sdk-extension-aws
55-
pip install -e ./resource/opentelemetry-resource-detector-container
55+
pip install -e ./resource/opentelemetry-resource-detector-containerid
5656
5757
5858
.. toctree::

docs/resource/container/container.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
OpenTelemetry Python - Resource Detector for Containers
22
=======================================================
33

4-
.. automodule:: opentelemetry.resource.detector.container
4+
.. automodule:: opentelemetry.resource.detector.containerid
55
:members:
66
:undoc-members:
77
:show-inheritance:

eachdist.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ packages=
4343
opentelemetry-instrumentation
4444
opentelemetry-contrib-instrumentations
4545
opentelemetry-distro
46-
opentelemetry-resource-detector-container
46+
opentelemetry-resource-detector-containerid
4747

4848
[exclude_release]
4949
packages=
File renamed without changes.

resource/opentelemetry-resource-detector-container/README.rst renamed to resource/opentelemetry-resource-detector-containerid/README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ Installation
1414

1515
::
1616

17-
pip install opentelemetry-resource-detector-container
17+
pip install opentelemetry-resource-detector-containerid
1818

1919
---------------------------
2020

21-
Usage example for `opentelemetry-resource-detector-container`
21+
Usage example for `opentelemetry-resource-detector-containerid`
2222

2323
.. code-block:: python
2424
2525
from opentelemetry import trace
2626
from opentelemetry.sdk.trace import TracerProvider
27-
from opentelemetry.resource.detector.container import (
27+
from opentelemetry.resource.detector.containerid import (
2828
ContainerResourceDetector,
2929
)
3030
from opentelemetry.sdk.resources import get_aggregated_resources

0 commit comments

Comments
 (0)