MCPcopy Index your code

hub / github.com/awslabs/metrique / functions

Functions1,687 in github.com/awslabs/metrique

↓ 755 callersFunctionnew
Creates a `(BoxEntrySink, PendingSinkResolver)` pair for deferred sink attachment. The returned sink can be used immediately. While the resolver has
metrique-util/src/pending_sink.rs:135
↓ 125 callersMethodclone
Clone produces a fresh handle to the same shared value, without a captured snapshot.
metrique-util/src/state.rs:152
↓ 94 callersMethodvalue
(&mut self, name: impl Into<Cow<'a, str>>, value: &(impl Value + ?Sized))
metrique-writer-format-emf/src/emf.rs:1210
↓ 91 callersMethodbuild
# Panics The default (no provider supplied) builds an empty [`SdkMeterProvider`] with no readers attached, which does not require a tokio runtime. I
metrique-otel/src/lib.rs:338
↓ 83 callersFunctiontest_entry_sink
Create a [`TestEntrySink`] and a connected [`BoxEntrySink`] that can be used in your application This requires that the `test-util` feature be enable
metrique-writer/src/test_util.rs:419
↓ 76 callersMethodpush
(&self, f: ShutdownFn)
metrique-writer-core/src/global.rs:283
↓ 60 callersFunctiontest_metric
Convert a `#[metric]` directly to `TestEntry` # Example ``` use metrique::unit_of_work::metrics; use metrique_writer::test_util::test_metric; #[met
metrique-writer/src/test_util.rs:350
↓ 58 callersMethodappend_on_drop
Wrap `entry` in a smart pointer that will automatically append it to this sink when dropped. This will help enforce that an entry is always appended
metrique-writer-core/src/sink.rs:62
↓ 53 callersMethodadd_value
Add a value to the histogram. The value is converted to observations using the metric value's implementation, then recorded in the aggregation strate
metrique-aggregation/src/histogram.rs:171
↓ 50 callersMethodas_str
(&self)
metrique-writer-format-emf/src/buf.rs:65
↓ 50 callersMethodentries
Return all the entries inside the test sink Note: this does not drain or otherwise modify the contained entries
metrique-writer/src/test_util.rs:439
↓ 49 callersMethodclone
(&self)
metrique-writer-core/src/unit.rs:460
↓ 48 callersMethodpush
(&mut self, c: char)
metrique-writer-format-emf/src/buf.rs:42
↓ 46 callersMethodclone
(&self)
metrique/src/lib.rs:434
↓ 46 callersMethodinto_iter
(self)
metrique-writer/src/value/distribution.rs:173
↓ 44 callersMethodappend
(&self, entry: E)
metrique-writer/src/sink/mod.rs:80
↓ 44 callersMethodas_ref
(&self)
metrique-writer-format-emf/src/buf.rs:83
↓ 44 callersMethodis_empty
This method is mostly useful for the EMF internal implementation
metrique-writer-core/src/config.rs:186
↓ 43 callersMethodvalue
(&mut self, name: impl Into<Cow<'a, str>>, value: &(impl Value + ?Sized))
metrique-otel/src/translator.rs:181
↓ 42 callersMethodinsert
Add a new entry into this aggregate
metrique-aggregation/src/aggregator.rs:182
↓ 39 callersMethodget
Returns an entry at a specific index
metrique-writer/src/test_util.rs:444
↓ 36 callersMethodstore
Atomically replace the shared value. All handles (including this one) will see the new value on their next [`snapshot`](State::snapshot), unless they
metrique-util/src/state.rs:124
↓ 35 callersFunctionto_test_entry
Converts an [`Entry`] into a `TestEntry` that can be introspected > NOTE: This method is probably not what you want. For testing an individual metric
metrique-writer/src/test_util.rs:327
↓ 33 callersMethodtake
Pull the stored duration out of the state, leaving empty state behind
metrique/src/timers.rs:575
↓ 27 callersMethodclone
(&self)
metrique-aggregation/src/sink/mutex.rs:38
↓ 27 callersMethodoutput_to
Bind the format to an `output` IO destination to create an [`EntryIoStream`]. This is the way to get an [`EntryIoStream`] from a [`Format`] and an [`
metrique-writer/src/format.rs:99
↓ 27 callersFunctionset_time_source
Set a thread-local time source override and return a guard When the guard is dropped, the thread-local override will be cleared # Examples ``` use me
metrique-timesource/src/lib.rs:521
↓ 26 callersMethodnext
(&mut self)
metrique-writer-core/src/config.rs:91
↓ 26 callersMethodvalue
(&mut self, name: impl Into<Cow<'a, str>>, value: &(impl Value + ?Sized))
metrique-writer-format-emf/tests/dimensions.rs:33
↓ 25 callersFunctioncheck
(allow_ignored: bool)
metrique-writer-format-emf/src/emf.rs:2329
↓ 24 callersMethodflush
(&mut self)
metrique-writer-cloudwatch/src/lib.rs:423
↓ 23 callersFunctionmetrics_impl_string
(input: Ts2, attrs: Ts2)
metrique-macro/src/lib.rs:1665
↓ 23 callersMethodname
The public name defined by CloudWatch for the unit.
metrique-writer-core/src/unit.rs:93
↓ 23 callersMethodnext
(&mut self, entry: &impl Entry)
metrique-writer-cloudwatch/src/lib.rs:363
↓ 22 callersMethodbuild
Build an [`Emf`] for formatting metrics with the input configuration ## Example This will publish the metrics to both the `MyApp` and the `MyApp2` n
metrique-writer-format-emf/src/emf.rs:578
↓ 22 callersMethodclear
(&mut self)
metrique-writer-format-emf/src/buf.rs:35
↓ 22 callersMethodincrement
Add 1 to this counter
metrique-core/src/atomics.rs:23
↓ 22 callersMethodoutput_to_makewriter
(self, output: O)
metrique-writer/src/format.rs:153
↓ 21 callersMethodelapsed
Returns the amount of time elapsed since this instant was created # Returns The elapsed time as a Duration # Examples ``` use metrique_timesource:
metrique-timesource/src/lib.rs:663
↓ 21 callersMethodformat
( &mut self, entry: &impl Entry, output: &mut impl io::Write, )
metrique-writer-format-json/src/json.rs:163
↓ 21 callersMethodstart
Starts the stopwatch and returns a guard that will stop it when dropped. The stopwatch will accumulate time until the guard is dropped. Multiple call
metrique/src/timers.rs:729
↓ 21 callersMethodwith_meter_provider
(mut self, provider: SdkMeterProvider)
metrique-otel/src/lib.rs:282
↓ 20 callersMethoddrain
Drains all currently appended entries from the sink and returns them as an owned [`Vec`]. The sink can still be used afterwards.
metrique-writer/src/sink/mod.rs:108
↓ 20 callersMethodpush_raw_str
(&'a mut self, s: &str)
metrique-writer-format-emf/src/buf.rs:48
↓ 20 callersMethodsend
Send an entry to be aggregated
metrique-aggregation/src/sink/worker.rs:82
↓ 19 callersMethodappend_any
(&self, entry: impl metrique_writer_core::Entry + Send + 'static)
metrique-otel/src/lib.rs:393
↓ 19 callersMethodrecord
Records an occurrence of a value in the histogram.
metrique-metricsrs/src/metrics_histogram.rs:41
↓ 19 callersMethodskip_all_validations
Skips all entry validations When `skip` is true, this is a shorthand that enables all of: - [`allow_dimensions_with_no_data`](Self::allow_dimensions_
metrique-writer-format-emf/src/emf.rs:903
↓ 18 callersMethodformat
( &mut self, entry: &impl Entry, output: &mut impl io::Write, )
metrique/src/local.rs:193
↓ 18 callersMethodset_value
Update the value.
metrique/src/flex.rs:108
↓ 17 callersMethodopen
Open the slot and provie an initial value
metrique/src/slot.rs:137
↓ 16 callersMethodclose
(self)
metrique/src/lib.rs:556
↓ 16 callersMethodextend
Extend this error with all of the validation failures recorded in `other`.
metrique-writer-core/src/validate.rs:24
↓ 16 callersMethodpush
(&self, entry: E)
metrique-writer/src/sink/background.rs:545
↓ 16 callersMethodtimestamp
(&mut self, timestamp: SystemTime)
metrique-writer-format-emf/src/emf.rs:1204
↓ 16 callersMethodvalue
(&mut self, name: impl Into<Cow<'a, str>>, value: &(impl Value + ?Sized))
metrique-writer-format-json/src/json.rs:188
↓ 16 callersMethodwith_interval
Return a config with a custom sampling interval. Defaults to 30 seconds. Intervals below [`sysinfo::MINIMUM_CPU_UPDATE_INTERVAL`] (~200ms) produce un
metrique-util/src/sysinfo_reporter.rs:73
↓ 15 callersMethodcounter
(&self, _: &K)
metrique-metricsrs/src/accumulator.rs:34
↓ 14 callersMethodappend
(&mut self, entry: &E)
metrique-writer/src/sink/immediate_flush.rs:215
↓ 14 callersMethoddump
Return the content of the inner `Vec<u8>` as a String, panicking if it's not valid utf-8
metrique-writer-core/src/test_stream.rs:132
↓ 14 callersMethodduration_since
See [`std::time::SystemTime::duration_since`]
metrique-timesource/src/lib.rs:761
↓ 14 callersMethodextend_mut
Extend this error with all of the validation failures recorded in `error`, but only require `&mut Self`.
metrique-writer-core/src/validate.rs:95
↓ 14 callersFunctionfresh
()
metrique-otel/src/metrics.rs:382
↓ 14 callersMethodshutdown
Async flush of remaining PutLogEvents batches. The submit loop drains remaining payloads, then signals completion. After this returns, the stream det
metrique-writer-cloudwatch/src/lib.rs:234
↓ 14 callersMethodsnapshot
Capture and return a snapshot of the current value. The first call captures the value; subsequent calls return the same `Arc<T>`.
metrique-util/src/state.rs:132
↓ 13 callersMethodfor_field
Add the field `name` context for all of the validation failures reported in `self`.
metrique-writer-core/src/validate.rs:29
↓ 13 callersMethodformat
( &mut self, entry: &impl Entry, output: &mut impl io::Write, )
metrique-writer-format-emf/src/emf.rs:1883
↓ 13 callersFunctionformat_entry_to_emf
Helper function to format an entry and return the parsed EMF output
metrique-writer-format-emf/tests/emf_limits.rs:250
↓ 13 callersMethodmerge_globals
[Merge](`Entry::merge_by_ref`) every entry written to this formatter with the contents of `globals`. There is intentionally both a [`EntryIoStreamExt
metrique-writer/src/format.rs:194
↓ 12 callersFunctiondefault_stream_with
( client: CloudWatchLogsClient, config: CwLogsStreamConfig, observer: Option<Box<dyn C
metrique-writer-cloudwatch/src/lib.rs:707
↓ 12 callersMethodflush
Synchronous counterpart to [`Self::flush_async`]: drive `force_flush` on the meter provider directly, blocking the calling thread until the flush comp
metrique-otel/src/lib.rs:202
↓ 12 callersMethodtimestamp
(&mut self, timestamp: SystemTime)
metrique-writer-format-emf/tests/dimensions.rs:20
↓ 12 callersMethodtruncate
(&mut self, combined_len: usize)
metrique-writer-format-emf/src/buf.rs:69
↓ 12 callersMethodvalue
Get a reference to the value, if present.
metrique/src/flex.rs:103
↓ 12 callersMethodwith_value
Set the value for this `Flex` field. This is useful for builder-style construction. # Example ```rust use metrique::flex::Flex; let metric = Flex::n
metrique/src/flex.rs:76
↓ 11 callersMethodconfig
(&mut self, config: &'a dyn EntryConfig)
metrique-writer-format-emf/src/emf.rs:1220
↓ 11 callersMethodfinish
(&mut self)
metrique-timesource/src/lib.rs:289
↓ 11 callersMethodflush
Flush all pending entries
metrique-aggregation/src/sink/worker.rs:87
↓ 11 callersMethodtimestamp
(&mut self, timestamp: SystemTime)
metrique-writer-format-json/src/json.rs:181
↓ 11 callersMethodto_tokens
(&self, tokens: &mut Ts2)
metrique-macro/src/emf.rs:54
↓ 10 callersFunctionassert_contains
(error: &ValidationError, s: &str)
metrique-writer-core/src/validate.rs:156
↓ 10 callersMethodbuild
Returns [`Ok`] if no validation failures were recorded, otherwise [`Err`] [`ValidationError`] containing all of the recorded validation falures.
metrique-writer-core/src/validate.rs:65
↓ 10 callersFunctiondefault_config
()
metrique-writer-cloudwatch/src/lib.rs:696
↓ 10 callersMethodis_empty
(&self)
metrique-writer-format-emf/src/buf.rs:31
↓ 10 callersMethodjson_string
(&mut self, value: &str)
metrique-writer-format-emf/src/buf.rs:76
↓ 10 callersMethodrecord
Record a single observation.
metrique-aggregation/src/histogram.rs:113
↓ 10 callersMethodset
Set this counter to `i`, discarding the previous value
metrique-core/src/atomics.rs:40
↓ 10 callersFunctiontest_client
(http_client: impl HttpClient + 'static)
metrique-writer-cloudwatch/src/lib.rs:596
↓ 9 callersMethodflush_async
Drive `force_flush` on the meter provider and resolve once it's done. Errors from `force_flush` are logged at `warn` level. Callers outside a tokio r
metrique-otel/src/lib.rs:178
↓ 9 callersMethodinvalid
Record a generic validation failure with a reason string.
metrique-writer-core/src/validate.rs:37
↓ 9 callersFunctionparse_output
(output: &[u8])
metrique-writer-format-json/src/json.rs:487
↓ 9 callersFunctiontime_source
()
metrique-timesource/src/lib.rs:590
↓ 9 callersMethodvalue
(&mut self, name: impl Into<Cow<'a, str>>, value: &(impl Value + ?Sized))
metrique-writer-core/src/entry/mod.rs:244
↓ 8 callersFunctionclean_attrs
(attr: &[Attribute])
metrique-macro/src/lib.rs:1590
↓ 8 callersMethodclear
Clear the values in this distribution, making it empty
metrique-writer/src/value/distribution.rs:197
↓ 8 callersMethodfinish
(mut self, output: &mut impl io::Write)
metrique-writer-format-emf/src/emf.rs:1296
↓ 8 callersFunctionformat_value
(format: &Option<syn::Path>, span: Span, field: Ts2)
metrique-macro/src/value_impl.rs:102
↓ 8 callersFunctionget_time_source
(ts: Option<TimeSource>)
metrique-timesource/src/lib.rs:545
↓ 8 callersFunctionparse_aggregate_fields
(input: &DeriveInput)
metrique-macro/src/aggregate.rs:23
↓ 8 callersMethodreadout
Read out the current value of the metrics, resetting counters and histograms (and not resetting gauges).
metrique-metricsrs/src/accumulator.rs:164
next →1–100 of 1,687, ranked by callers