1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! Small helpers: timestamps, ids, and the SDK identity constants.
use ;
use Rfc3339;
use OffsetDateTime;
use Uuid;
/// Wire name reported in `sdkName` fields and the User-Agent.
pub const SDK_NAME: &str = "rust";
/// Crate version, taken from Cargo at build time.
pub const SDK_VERSION: &str = env!;
/// Platform string reported in events.
pub const PLATFORM: &str = "rust";
/// `User-Agent` header value, e.g. `allstak-rust/0.1.0`.
/// Current time as an RFC-3339 / ISO-8601 string in UTC.
/// Current Unix time in milliseconds.
/// A 32-char lower-hex trace id (W3C-compatible width).
/// A 16-char lower-hex span id (W3C-compatible width).