-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tweak pyo3-tracing-subscriber features
- Loading branch information
Showing
6 changed files
with
72 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
crates/python/qcs_sdk/_tracing_subscriber/common/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# ***************************************************************************** | ||
# * AUTO-GENERATED CODE * | ||
# * * | ||
# * This code was generated by the `pyo3-tracing-subscriber` crate. Any * | ||
# * modifications to this file should be made to the script or the generation * | ||
# * process that produced this code. Specifically, see: * | ||
# * `pyo3_tracing_subscriber::stubs::write_stub_files` * | ||
# * * | ||
# * Do not manually edit this file, as your changes may be overwritten the * | ||
# * next time the code is generated. * | ||
# ***************************************************************************** | ||
|
||
from qcs_sdk._tracing_subscriber import common | ||
|
||
|
||
__doc__ = common.__doc__ | ||
__all__ = getattr(common, "__all__", []) | ||
|
45 changes: 45 additions & 0 deletions
45
crates/python/qcs_sdk/_tracing_subscriber/common/__init__.pyi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# ***************************************************************************** | ||
# * AUTO-GENERATED CODE * | ||
# * * | ||
# * This code was generated by the `pyo3-tracing-subscriber` crate. Any * | ||
# * modifications to this file should be made to the script or the generation * | ||
# * process that produced this code. Specifically, see: * | ||
# * `pyo3_tracing_subscriber::stubs::write_stub_files` * | ||
# * * | ||
# * Do not manually edit this file, as your changes may be overwritten the * | ||
# * next time the code is generated. * | ||
# ***************************************************************************** | ||
|
||
from typing import Dict, Optional, final | ||
|
||
|
||
@final | ||
class InstrumentationLibrary: | ||
""" | ||
Information about a library or crate providing instrumentation. | ||
An instrumentation library should be named to follow any naming conventions | ||
of the instrumented library (e.g. 'middleware' for a web framework). | ||
See the `instrumentation libraries <https://github.com/open-telemetry/opentelemetry-specification/blob/v1.9.0/specification/overview.md#instrumentation-libraries>`_ | ||
spec for more information. | ||
""" | ||
|
||
def __new__( | ||
cls, | ||
name: str, | ||
version: Optional[str] = None, | ||
schema_url: Optional[str] = None, | ||
attributes: Optional[Dict[str, str]] = None, | ||
) -> "InstrumentationLibrary": | ||
""" | ||
Initializes a new instance of `InstrumentationLibrary`. | ||
:param name: The name of the instrumentation library. | ||
:param version: The version of the instrumentation library. | ||
:param schema_url: The `schema URL <https://opentelemetry.io/docs/specs/otel/schemas/>`_ of | ||
the instrumentation library. | ||
:param attributes: The attributes of the instrumentation library. | ||
""" | ||
... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters