Config
本頁內容尚未翻譯。
const Config: Union<readonly [Struct<{ exporter: Struct<{ config: withDecodingDefaultKey<Codec<Json, Json, never, never>, never>; name: String; }>; plugins: decodeTo<$Array<StructWithRest<Struct<{ config: optionalKey<Unknown>; disabled: optionalKey<Boolean>; group: optionalKey<Boolean>; id: String; inject: optionalKey<$Array<...>>; intercept: optionalKey<$Record<..., ...>>; isolate: optionalKey<$Record<..., ...>>; name: String; }>, readonly [$Record<String, Unknown>]>>, $Array<StructWithRest<Struct<{ config: optionalKey<Unknown>; disabled: optionalKey<Boolean>; group: optionalKey<Boolean>; id: optionalKey<String>; inject: optionalKey<$Array<...>>; intercept: optionalKey<$Record<..., ...>>; isolate: optionalKey<$Record<..., ...>>; name: String; }>, readonly [$Record<String, Unknown>]>>, never, never>;}>, Struct<{ compression: withDecodingDefaultKey<Literals<readonly ["none", "gzip"]>, never>; exportInterval: withDecodingDefaultKey<Union<readonly [Finite, FiniteFromString]>, never>; headers: withDecodingDefaultKey<$Record<String, RedactedFromValue<String>>, never>; maxBatchSize: withDecodingDefaultKey<Union<readonly [Int, FiniteFromString]>, never>; plugins: decodeTo<$Array<StructWithRest<Struct<{ config: optionalKey<Unknown>; disabled: optionalKey<Boolean>; group: optionalKey<Boolean>; id: String; inject: optionalKey<$Array<...>>; intercept: optionalKey<$Record<..., ...>>; isolate: optionalKey<$Record<..., ...>>; name: String; }>, readonly [$Record<String, Unknown>]>>, $Array<StructWithRest<Struct<{ config: optionalKey<Unknown>; disabled: optionalKey<Boolean>; group: optionalKey<Boolean>; id: optionalKey<String>; inject: optionalKey<$Array<...>>; intercept: optionalKey<$Record<..., ...>>; isolate: optionalKey<$Record<..., ...>>; name: String; }>, readonly [$Record<String, Unknown>]>>, never, never>; resource: withDecodingDefaultKey<Struct<{ attributes: withDecodingDefaultKey<$Record<String, Codec<Json, Json, never, never>>, never>; serviceVersion: withDecodingDefaultKey<String, never>; }>, never>; serialization: withDecodingDefaultKey<Literals<readonly ["json", "protobuf"]>, never>; serviceName: String; shutdownTimeout: withDecodingDefaultKey<Union<readonly [Finite, FiniteFromString]>, never>; url: String;}>]>;Defined in: Config.ts:62
Choose the HTTP shorthand or an explicit exporter, and the entries to trace.