Skip to content

Commit 848cad8

Browse files
authored
Merge branch 'master' into req
2 parents ec81ffb + f52c88b commit 848cad8

File tree

92 files changed

+812
-576
lines changed

Some content is hidden

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

92 files changed

+812
-576
lines changed

.github/pull_request_template.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ Please describe the tests that you ran to verify your changes. Provide instructi
1919

2020
- [ ] Test A
2121

22+
# Does This PR Require a Core Repo Change?
23+
24+
- [ ] Yes. - Link to PR:
25+
- [ ] No.
26+
2227
# Checklist:
2328

2429
See [contributing.md](https://github.com/open-telemetry/opentelemetry-python-contrib/blob/master/CONTRIBUTING.md) for styleguide, changelog guidelines, and more.

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- 'release/*'
77
pull_request:
88
env:
9-
CORE_REPO_SHA: 47483865854c7adae7455f8441dab7f814f4ce2a
9+
CORE_REPO_SHA: 3b813eb9921e709538dd1b07fa7a5f93600fbec1
1010

1111
jobs:
1212
build:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ var
1616
sdist
1717
develop-eggs
1818
.installed.cfg
19+
pyvenv.cfg
1920
lib
2021
lib64
2122
__pycache__

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ You can run:
4646
- `tox -e lint` to run lint checks on all code
4747

4848
See
49-
[`tox.ini`](https://github.com/open-telemetry/opentelemetry-python/blob/master/tox.ini)
49+
[`tox.ini`](https://github.com/open-telemetry/opentelemetry-python-contrib/blob/master/tox.ini)
5050
for more detail on available tox commands.
5151

5252
## Pull Requests

_template/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ Installation
1919
References
2020
----------
2121

22-
* `OpenTelemetry <REPLACE ME>/ Tracing <https://opentelemetry-python.readthedocs.io/en/latest/instrumentation/<REPLACE ME>/<REPLACE ME>.html>`_
22+
* `OpenTelemetry <REPLACE ME>/ Tracing <https://opentelemetry-python-contrib.readthedocs.io/en/latest/instrumentation/<REPLACE ME>/<REPLACE ME>.html>`_
2323
* `OpenTelemetry Project <https://opentelemetry.io/>`_

exporter/opentelemetry-exporter-datadog/setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ long_description = file: README.rst
1919
long_description_content_type = text/x-rst
2020
author = OpenTelemetry Authors
2121
author_email = [email protected]
22-
url = https://github.com/open-telemetry/opentelemetry-python/exporter/opentelemetry-exporter-datadog
22+
url = https://github.com/open-telemetry/opentelemetry-python-contrib/exporter/opentelemetry-exporter-datadog
2323
platforms = any
2424
license = Apache-2.0
2525
classifiers =

instrumentation/opentelemetry-instrumentation-aiohttp-client/setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ long_description = file: README.rst
1919
long_description_content_type = text/x-rst
2020
author = OpenTelemetry Authors
2121
author_email = [email protected]
22-
url = https://github.com/open-telemetry/opentelemetry-python/instrumentation/opentelemetry-instrumentation-aiohttp-client
22+
url = https://github.com/open-telemetry/opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-aiohttp-client
2323
platforms = any
2424
license = Apache-2.0
2525
classifiers =

instrumentation/opentelemetry-instrumentation-aiopg/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ Installation
1717
References
1818
----------
1919

20-
* `OpenTelemetry aiopg Instrumentation <https://opentelemetry-python.readthedocs.io/en/latest/instrumentation/aiopg/aiopg.html>`_
20+
* `OpenTelemetry aiopg Instrumentation <https://opentelemetry-python-contrib.readthedocs.io/en/latest/instrumentation/aiopg/aiopg.html>`_
2121
* `OpenTelemetry Project <https://opentelemetry.io/>`_

instrumentation/opentelemetry-instrumentation-aiopg/setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ long_description = file: README.rst
1919
long_description_content_type = text/x-rst
2020
author = OpenTelemetry Authors
2121
author_email = [email protected]
22-
url = https://github.com/open-telemetry/opentelemetry-python/tree/master/instrumentation/opentelemetry-instrumentation-aiopg
22+
url = https://github.com/open-telemetry/opentelemetry-python-contrib/tree/master/instrumentation/opentelemetry-instrumentation-aiopg
2323
platforms = any
2424
license = Apache-2.0
2525
classifiers =

instrumentation/opentelemetry-instrumentation-aiopg/src/opentelemetry/instrumentation/aiopg/aiopg_integration.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,16 @@ async def traced_execution(
101101
*args: typing.Tuple[typing.Any, typing.Any],
102102
**kwargs: typing.Dict[typing.Any, typing.Any]
103103
):
104+
name = ""
105+
if len(args) > 0 and args[0]:
106+
name = args[0]
107+
elif self._db_api_integration.database:
108+
name = self._db_api_integration.database
109+
else:
110+
name = self._db_api_integration.name
104111

105112
with self._db_api_integration.get_tracer().start_as_current_span(
106-
self._db_api_integration.name, kind=SpanKind.CLIENT
113+
name, kind=SpanKind.CLIENT
107114
) as span:
108115
self._populate_span(span, *args)
109116
try:

0 commit comments

Comments
 (0)