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 e076e7c commit 7ba7261
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 7ba7261

Please sign in to comment.