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

Add type hints to OTLP exporter #1121

Merged
merged 10 commits into from
Sep 17, 2020

Conversation

ahlaw
Copy link
Contributor

@ahlaw ahlaw commented Sep 16, 2020

Description

Type hints were added to all functions in the OTLP exporter.

Fixes #1009

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Ran mypy against the changed source files with the following command:

MYPYPATH="opentelemetry-api/src:opentelemetry-proto/src:opentelemetry-sdk/src:exporter/opentelemetry-exporter-otlp/src" mypy --namespace-packages --config=mypy-relaxed.ini --follow-imports=silent exporter/opentelemetry-exporter-otlp/src/opentelemetry/exporter/otlp/

No new errors were produced.

Also passes tox tests ran with py3{5,6,7,8}-test-exporter-otlp

Checklist:

  • Followed the style guidelines of this project
  • Changelogs have been updated

@ahlaw ahlaw requested a review from a team September 16, 2020 17:38
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Sep 16, 2020

CLA Check
The committers are authorized under a signed CLA.

Copy link
Member

@aabmass aabmass left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this, looks good just a few comments

@lzchen lzchen self-assigned this Sep 17, 2020
@lzchen lzchen merged commit e8f5eb5 into open-telemetry:master Sep 17, 2020
@ahlaw ahlaw deleted the 1009-otlp-exporter-type-hints branch September 17, 2020 19:48
alertedsnake pushed a commit to alertedsnake/opentelemetry-python that referenced this pull request Sep 25, 2020
srikanthccv pushed a commit to srikanthccv/opentelemetry-python that referenced this pull request Nov 1, 2020
* chore: adding plugin-fetch and example

* chore: investigating failing test

* chore: chore fixing tests with better fetch mocking

* chore: addressing comments

* chore: lint

* chore: addressing comments

* chore: updating webpack-env

* chore: fixes after update for node types

* chore: addressing reviews

* chore: fixes after merge

* chore: updating version

Co-authored-by: Mayur Kale <mayurkale@google.com>
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add type hints to OTLP exporter
3 participants