Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merging from opentelemetry-python/master #1

Merged
merged 10 commits into from
Nov 27, 2020
19 changes: 19 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,25 @@ Please describe the tests that you ran to verify your changes. Provide instructi

- [ ] Test A

# Does This PR Require a Contrib Repo Change?

Answer the following question based on these examples of changes that would require a Contrib Repo Change:
- [The OTel specification](https://github.com/open-telemetry/opentelemetry-specification) has changed which prompted this PR to update the method interfaces of `opentelemetry-api/` or `opentelemetry-sdk/`
- The method interfaces of `opentelemetry-instrumentation/` have changed
- The method interfaces of `test/util` have changed
- Scripts in `scripts/` that were copied over to the Contrib repo have changed
- Configuration files that were copied over to the Contrib repo have changed (when consistency between repositories is applicable) such as in
- `pyproject.toml`
- `isort.cfg`
- `.flake8`
- When a new `.github/CODEOWNER` is added
- Major changes to project information, such as in:
- `README.md`
- `CONTRIBUTING.md`

- [ ] Yes. - Link to PR:
- [ ] No.

# Checklist:

- [ ] Followed the style guidelines of this project
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:
# Otherwise, set variable to the commit of your branch on
# opentelemetry-python-contrib which is compatible with these Core repo
# changes.
CONTRIB_REPO_SHA: master
CONTRIB_REPO_SHA: bcec49cf2eccf8da66c9e63b9836ea8a20516efc

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/error_hander/error_handler_0/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ package_dir=
=src
packages=find_namespace:
install_requires =
opentelemetry-sdk == 0.16.dev0
opentelemetry-sdk == 0.17.dev0

[options.packages.find]
where = src
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.16.dev0"
__version__ = "0.17.dev0"
2 changes: 1 addition & 1 deletion docs/examples/error_hander/error_handler_1/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ package_dir=
=src
packages=find_namespace:
install_requires =
opentelemetry-sdk == 0.16.dev0
opentelemetry-sdk == 0.17.dev0

[options.packages.find]
where = src
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.16.dev0"
__version__ = "0.17.dev0"
4 changes: 2 additions & 2 deletions exporter/opentelemetry-exporter-jaeger/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ package_dir=
packages=find_namespace:
install_requires =
thrift >= 0.10.0
opentelemetry-api == 0.16.dev0
opentelemetry-sdk == 0.16.dev0
opentelemetry-api == 0.17.dev0
opentelemetry-sdk == 0.17.dev0

[options.packages.find]
where = src
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.16.dev0"
__version__ = "0.17.dev0"
4 changes: 4 additions & 0 deletions exporter/opentelemetry-exporter-opencensus/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

## Version 0.16b0

Released 2020-11-25

- Update protobuf versions
([#1356](https://github.com/open-telemetry/opentelemetry-python/pull/1356))

Expand Down
4 changes: 2 additions & 2 deletions exporter/opentelemetry-exporter-opencensus/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ packages=find_namespace:
install_requires =
grpcio >= 1.0.0, < 2.0.0
opencensus-proto >= 0.1.0, < 1.0.0
opentelemetry-api == 0.16.dev0
opentelemetry-sdk == 0.16.dev0
opentelemetry-api == 0.17.dev0
opentelemetry-sdk == 0.17.dev0
protobuf >= 3.13.0

[options.packages.find]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.16.dev0"
__version__ = "0.17.dev0"
9 changes: 9 additions & 0 deletions exporter/opentelemetry-exporter-otlp/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

## Unreleased

- Add meter reference to observers
([#1425](https://github.com/open-telemetry/opentelemetry-python/pull/1425))

## Version 0.16b0

Released 2020-11-25

- Add instrumentation library name and version to OTLP exported metrics
([#1418](https://github.com/open-telemetry/opentelemetry-python/pull/1418))
- Change temporality for Counter and UpDownCounter
([#1384](https://github.com/open-telemetry/opentelemetry-python/pull/1384))
- Add Gzip compression for exporter
Expand Down
6 changes: 3 additions & 3 deletions exporter/opentelemetry-exporter-otlp/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ packages=find_namespace:
install_requires =
grpcio >= 1.0.0, < 2.0.0
googleapis-common-protos ~= 1.52.0
opentelemetry-api == 0.16.dev0
opentelemetry-sdk == 0.16.dev0
opentelemetry-proto == 0.16.dev0
opentelemetry-api == 0.17.dev0
opentelemetry-sdk == 0.17.dev0
opentelemetry-proto == 0.17.dev0
backoff ~= 1.10.0

[options.extras_require]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,11 @@ def _translate_data(
)
argument = type_class[value_type]["gauge"]["argument"]

sdk_resource_instrumentation_library_metrics[
instrumentation_library_metrics = sdk_resource_instrumentation_library_metrics[
export_record.resource
].metrics.append(
]

instrumentation_library_metrics.metrics.append(
OTLPMetric(
**{
"name": export_record.instrument.name,
Expand All @@ -317,6 +319,19 @@ def _translate_data(
)
)

instrumentation_library_metrics.instrumentation_library.name = (
export_record.instrument.meter.instrumentation_info.name
)

version = (
export_record.instrument.meter.instrumentation_info.version
)

if version:
(
instrumentation_library_metrics.instrumentation_library.version
) = version

return ExportMetricsServiceRequest(
resource_metrics=_get_resource_data(
sdk_resource_instrumentation_library_metrics,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"""OTLP Span Exporter"""

import logging
import os
from typing import Optional, Sequence

from grpc import ChannelCredentials
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.16.dev0"
__version__ = "0.17.dev0"
Loading