Skip to content

Commit

Permalink
Don't recommend deprecated pkg_resources package
Browse files Browse the repository at this point in the history
Use std library importlib.metadata.version as the current
recommended alternative
  • Loading branch information
jenshnielsen committed Jul 6, 2023
1 parent 3f459d3 commit 14edd24
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def get_logger(
version: Optional. The version string of the
instrumenting library. Usually this should be the same as
``pkg_resources.get_distribution(instrumenting_library_name).version``.
``importlib.metadata.version(instrumenting_library_name)``.
schema_url: Optional. Specifies the Schema URL of the emitted telemetry.
"""
Expand Down

0 comments on commit 14edd24

Please sign in to comment.