Skip to content

Commit

Permalink
Implement missing context methods (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Apr 7, 2021
1 parent ca8eac6 commit 3e1a9fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [0.19b0](https://github.com/open-telemetry/opentelemetry-python-contrib/releases/tag/v0.19b0) - 2021-03-26

- Implement context methods for `_InterceptorChannel`
([#363](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/363))

### Changed
- Rename `IdsGenerator` to `IdGenerator`
([#350](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/350))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,11 @@ def close(self):

def __enter__(self):
"""Enters the runtime context related to the channel object."""
raise NotImplementedError()
return self

def __exit__(self, exc_type, exc_val, exc_tb):
"""Exits the runtime context related to the channel object."""
raise NotImplementedError()
self.close()


def intercept_channel(channel, *interceptors):
Expand Down

0 comments on commit 3e1a9fa

Please sign in to comment.