Skip to content

Commit 4991ff3

Browse files
committed
fmt
1 parent 52781ef commit 4991ff3

File tree

4 files changed

+33
-33
lines changed

4 files changed

+33
-33
lines changed

opentelemetry-sdk/src/logs/log_emitter.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -186,15 +186,15 @@ pub struct Builder {
186186

187187
impl Builder {
188188
/// Adds a [SimpleLogProcessor] with the configured exporter to the pipeline.
189-
///
189+
///
190190
/// # Arguments
191-
///
191+
///
192192
/// * `exporter` - The exporter to be used by the SimpleLogProcessor.
193-
///
193+
///
194194
/// # Returns
195-
///
195+
///
196196
/// A new `Builder` instance with the SimpleLogProcessor added to the pipeline.
197-
///
197+
///
198198
/// Processors are invoked in the order they are added.
199199
pub fn with_simple_exporter<T: LogExporter + 'static>(self, exporter: T) -> Self {
200200
let mut processors = self.processors;
@@ -204,31 +204,31 @@ impl Builder {
204204
}
205205

206206
/// Adds a [BatchLogProcessor] with the configured exporter to the pipeline.
207-
///
207+
///
208208
/// # Arguments
209-
///
209+
///
210210
/// * `exporter` - The exporter to be used by the BatchLogProcessor.
211-
///
211+
///
212212
/// # Returns
213-
///
213+
///
214214
/// A new `Builder` instance with the BatchLogProcessor added to the pipeline.
215-
///
215+
///
216216
/// Processors are invoked in the order they are added.
217217
pub fn with_batch_exporter<T: LogExporter + 'static>(self, exporter: T) -> Self {
218218
let batch = BatchLogProcessor::builder(exporter).build();
219219
self.with_log_processor(batch)
220220
}
221221

222222
/// Adds a custom [LogProcessor] to the pipeline.
223-
///
223+
///
224224
/// # Arguments
225-
///
225+
///
226226
/// * `processor` - The `LogProcessor` to be added.
227-
///
227+
///
228228
/// # Returns
229-
///
229+
///
230230
/// A new `Builder` instance with the custom `LogProcessor` added to the pipeline.
231-
///
231+
///
232232
/// Processors are invoked in the order they are added.
233233
pub fn with_log_processor<T: LogProcessor + 'static>(self, processor: T) -> Self {
234234
let mut processors = self.processors;

opentelemetry-sdk/src/logs/log_processor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ pub trait LogProcessor: Send + Sync + Debug {
105105

106106
/// A [`LogProcessor`] designed for testing and debugging purpose, that immediately
107107
/// exports log records as they are emitted. Log records are exported synchronously
108-
/// in the same thread that emits the log record.
108+
/// in the same thread that emits the log record.
109109
/// When using this processor with the OTLP Exporter, the following exporter
110110
/// features are supported:
111111
/// - `grpc-tonic`: This requires LoggerProvider to be created within a tokio

opentelemetry-sdk/src/trace/provider.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -281,15 +281,15 @@ pub struct Builder {
281281

282282
impl Builder {
283283
/// Adds a [SimpleSpanProcessor] with the configured exporter to the pipeline.
284-
///
284+
///
285285
/// # Arguments
286-
///
286+
///
287287
/// * `exporter` - The exporter to be used by the SimpleSpanProcessor.
288-
///
288+
///
289289
/// # Returns
290-
///
290+
///
291291
/// A new `Builder` instance with the SimpleSpanProcessor added to the pipeline.
292-
///
292+
///
293293
/// Processors are invoked in the order they are added.
294294
pub fn with_simple_exporter<T: SpanExporter + 'static>(self, exporter: T) -> Self {
295295
let mut processors = self.processors;
@@ -299,31 +299,31 @@ impl Builder {
299299
}
300300

301301
/// Adds a [BatchSpanProcessor] with the configured exporter to the pipeline.
302-
///
302+
///
303303
/// # Arguments
304-
///
304+
///
305305
/// * `exporter` - The exporter to be used by the BatchSpanProcessor.
306-
///
306+
///
307307
/// # Returns
308-
///
308+
///
309309
/// A new `Builder` instance with the BatchSpanProcessor added to the pipeline.
310-
///
310+
///
311311
/// Processors are invoked in the order they are added.
312312
pub fn with_batch_exporter<T: SpanExporter + 'static>(self, exporter: T) -> Self {
313313
let batch = BatchSpanProcessor::builder(exporter).build();
314314
self.with_span_processor(batch)
315315
}
316316

317317
/// Adds a custom [SpanProcessor] to the pipeline.
318-
///
318+
///
319319
/// # Arguments
320-
///
320+
///
321321
/// * `processor` - The `SpanProcessor` to be added.
322-
///
322+
///
323323
/// # Returns
324-
///
324+
///
325325
/// A new `Builder` instance with the custom `SpanProcessor` added to the pipeline.
326-
///
326+
///
327327
/// Processors are invoked in the order they are added.
328328
pub fn with_span_processor<T: SpanProcessor + 'static>(self, processor: T) -> Self {
329329
let mut processors = self.processors;

opentelemetry-sdk/src/trace/span_processor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ pub trait SpanProcessor: Send + Sync + std::fmt::Debug {
101101
/// A [SpanProcessor] that passes finished spans to the configured
102102
/// `SpanExporter`, as soon as they are finished, without any batching. This is
103103
/// typically useful for debugging and testing. For scenarios requiring higher
104-
/// performance/throughput, consider using [BatchSpanProcessor].
104+
/// performance/throughput, consider using [BatchSpanProcessor].
105105
/// Log records are exported synchronously
106-
/// in the same thread that emits the log record.
106+
/// in the same thread that emits the log record.
107107
/// When using this processor with the OTLP Exporter, the following exporter
108108
/// features are supported:
109109
/// - `grpc-tonic`: This requires TracerProvider to be created within a tokio

0 commit comments

Comments
 (0)