Skip to content

Commit 8838992

Browse files
committed
fix: 'ds2' is now 'qeci'
1 parent ce46b92 commit 8838992

File tree

8 files changed

+25
-23
lines changed

8 files changed

+25
-23
lines changed

crates/python/qcs_sdk/_tracing_subscriber/common/__init__.pyi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@
1212

1313
from typing import Dict, Optional, final
1414

15+
1516
@final
1617
class InstrumentationLibrary:
1718
"""
1819
Information about a library or crate providing instrumentation.
19-
20+
2021
An instrumentation library should be named to follow any naming conventions
2122
of the instrumented library (e.g. 'middleware' for a web framework).
22-
23+
2324
See the `instrumentation libraries <https://github.com/open-telemetry/opentelemetry-specification/blob/v1.9.0/specification/overview.md#instrumentation-libraries>`_
2425
spec for more information.
2526
"""
@@ -41,3 +42,4 @@ class InstrumentationLibrary:
4142
:param attributes: The attributes of the instrumentation library.
4243
"""
4344
...
45+

crates/python/qcs_sdk/_tracing_subscriber/layers/__init__.pyi

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@
1313
from __future__ import annotations
1414
from typing import TYPE_CHECKING
1515

16-
from . import file as file
16+
from . import file as file
1717
from . import otel_otlp_file as otel_otlp_file
1818
from . import otel_otlp as otel_otlp
1919

2020
if TYPE_CHECKING:
21-
from typing import Union
21+
from typing import Union
2222

23-
Config = Union[
24-
file.Config,
25-
otel_otlp_file.Config,
26-
otel_otlp.Config,
27-
]
28-
"""
23+
Config = Union[
24+
file.Config,
25+
otel_otlp_file.Config,
26+
otel_otlp.Config,
27+
]
28+
"""
2929
One of the supported layer configurations that may be set on the subscriber configuration.
3030
"""

crates/python/qcs_sdk/_tracing_subscriber/layers/file/__init__.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ class Config:
3939
:param json: Whether or not to format the output as JSON. Defaults to `True`.
4040
"""
4141
...
42+

crates/python/qcs_sdk/_tracing_subscriber/layers/otel_otlp/__init__.pyi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ class Resource:
4848
schema_url: Optional[str] = None,
4949
) -> "Resource": ...
5050

51+
52+
5153
@final
5254
class Config:
5355
"""
@@ -99,14 +101,14 @@ class Config:
99101
...
100102

101103
if TYPE_CHECKING:
102-
from typing import List, Union
104+
from typing import List, Union
103105

104106
ResourceValueArray = Union[List[bool], List[int], List[float], List[str]]
105107
"""
106108
An array of `ResourceValue`s. This array is homogenous, so all values must be of the same type.
107109
"""
108110

109-
ResourceValue = Union[bool, int, float, str, ResourceValueArray]
111+
ResourceValue= Union[bool, int, float, str, ResourceValueArray]
110112
"""
111113
A value that can be added to a `Resource`.
112114
"""

crates/python/qcs_sdk/_tracing_subscriber/layers/otel_otlp_file/__init__.pyi

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,15 @@
1313
from typing import Optional, final
1414
from qcs_sdk._tracing_subscriber.common import InstrumentationLibrary
1515

16+
1617
@final
1718
class Config:
1819
"""
1920
A configuration for `opentelemetry-stdout <https://docs.rs/opentelemetry-stdout/latest/opentelemetry_stdout/>`_
2021
layer.
2122
"""
2223

23-
def __new__(
24-
cls,
25-
*,
26-
file_path: Optional[str] = None,
27-
filter: Optional[str] = None,
28-
instrumentation_library: Optional[InstrumentationLibrary] = None,
29-
) -> "Config":
24+
def __new__(cls, *, file_path: Optional[str] = None, filter: Optional[str] = None, instrumentation_library: Optional[InstrumentationLibrary] = None) -> "Config":
3025
"""
3126
:param file_path: The path to the file to write to. If not specified, defaults to stdout.
3227
:param filter: A filter string to use for this layer. This uses the same format as the
@@ -40,3 +35,4 @@ class Config:
4035
:param instrumentation_library: Information about the library providing the tracing instrumentation.
4136
"""
4237
...
38+

crates/python/qcs_sdk/_tracing_subscriber/subscriber/__init__.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ class Config:
2222
"""
2323

2424
def __new__(cls, *, layer: layers.Config) -> "Config": ...
25+

crates/python/qcs_sdk/qpu/translation.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class Riverlane:
143143
are specially authorized and are not generally available to the client.
144144
"""
145145

146-
def __new__(cls, /, ds2_configuration_data: Optional[Dict[str, bytes]] = ...) -> Self: ...
146+
def __new__(cls, /, qeci_configuration_data: Optional[Dict[str, bytes]] = ...) -> Self: ...
147147

148148
@final
149149
class TranslationOptions:

crates/python/src/qpu/translation.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,10 @@ pub struct PyRiverlane(Riverlane);
207207
#[pymethods]
208208
impl PyRiverlane {
209209
#[new]
210-
#[pyo3(signature = (/, ds2_configuration_data = None))]
211-
fn __new__(ds2_configuration_data: Option<HashMap<String, Vec<u8>>>) -> PyResult<Self> {
210+
#[pyo3(signature = (/, qeci_configuration_data = None))]
211+
fn __new__(qeci_configuration_data: Option<HashMap<String, Vec<u8>>>) -> PyResult<Self> {
212212
Ok(Self(Riverlane {
213-
ds2_configuration_data: ds2_configuration_data.unwrap_or_default(),
213+
qeci_configuration_data: qeci_configuration_data.unwrap_or_default(),
214214
}))
215215
}
216216
}

0 commit comments

Comments
 (0)