Skip to content

Commit f64f30e

Browse files
committed
Replace usage of deprecated attributes
1 parent 09e584d commit f64f30e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ impl PyObjectProtocol for Stats {
6767

6868
/// The main reporter class.
6969
#[pyclass]
70-
#[text_signature = "()"]
70+
#[pyo3(text_signature = "()")]
7171
struct Reporter {
7272
span_sender: Sender<thrift_gen::jaeger::Span>,
7373
process_sender: Sender<thrift_gen::jaeger::Process>,
@@ -179,7 +179,7 @@ impl Reporter {
179179
}
180180

181181
/// Sets the process information needed to report spans.
182-
#[text_signature = "($self, service_name, tags, max_length, /)"]
182+
#[pyo3(text_signature = "($self, service_name, tags, max_length, /)")]
183183
fn set_process(
184184
self_: PyRef<Self>,
185185
service_name: String,
@@ -200,7 +200,7 @@ impl Reporter {
200200
}
201201

202202
/// Queue a span to be reported to local jaeger agent.
203-
#[text_signature = "($self, span, /)"]
203+
#[pyo3(text_signature = "($self, span, /)")]
204204
fn report_span(&self, py: Python, py_span: Py<PyAny>) -> PyResult<()> {
205205
// This may fail if the queue is full. We should probably log something
206206
// somehow?
@@ -217,7 +217,7 @@ impl Reporter {
217217
Ok(())
218218
}
219219

220-
#[text_signature = "($self, /)"]
220+
#[pyo3(text_signature = "($self, /)")]
221221
fn get_stats(&self) -> Stats {
222222
let queue_size = self.queue_size.load(Ordering::Relaxed);
223223
let sent_batches = self.sent_batches.load(Ordering::Relaxed);

0 commit comments

Comments
 (0)