Start the Stackdriver Trace Agent with the given configuration (if provided). This function should only be called once, and before any other modules are loaded.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Package @google-cloud/trace-agent (8.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [8.0.0 (latest)](/nodejs/docs/reference/trace-agent/latest/overview)\n- [7.1.2](/nodejs/docs/reference/trace-agent/7.1.2/overview)\n- [7.0.0](/nodejs/docs/reference/trace-agent/7.0.0/overview)\n- [5.1.6](/nodejs/docs/reference/trace-agent/5.1.6/overview) \n\nInterfaces\n----------\n\n### [Config](/nodejs/docs/reference/trace-agent/latest/trace-agent/config)\n\nAvailable configuration options. All fields are optional. See the defaultConfig object defined in this file for default assigned values.\n\n### [PluginTypes.Intercept](/nodejs/docs/reference/trace-agent/latest/trace-agent/plugintypes.intercept)\n\n### [PluginTypes.Monkeypatch](/nodejs/docs/reference/trace-agent/latest/trace-agent/plugintypes.monkeypatch)\n\n### [PluginTypes.Propagation](/nodejs/docs/reference/trace-agent/latest/trace-agent/plugintypes.propagation)\n\n### [PluginTypes.RootSpan](/nodejs/docs/reference/trace-agent/latest/trace-agent/plugintypes.rootspan)\n\nRepresents the root span within a trace.\n\n### [PluginTypes.RootSpanOptions](/nodejs/docs/reference/trace-agent/latest/trace-agent/plugintypes.rootspanoptions)\n\nAn interface that describes the available options for creating root spans.\n\n### [PluginTypes.Span](/nodejs/docs/reference/trace-agent/latest/trace-agent/plugintypes.span)\n\nRepresents a trace span.\n\n### [PluginTypes.SpanOptions](/nodejs/docs/reference/trace-agent/latest/trace-agent/plugintypes.spanoptions)\n\nAn interface that describes the available options for creating a span in general.\n\n### [PluginTypes.TraceAgentExtension](/nodejs/docs/reference/trace-agent/latest/trace-agent/plugintypes.traceagentextension)\n\n### [PluginTypes.TraceContext](/nodejs/docs/reference/trace-agent/latest/trace-agent/plugintypes.tracecontext)\n\n### [PluginTypes.Tracer](/nodejs/docs/reference/trace-agent/latest/trace-agent/plugintypes.tracer)\n\nFunctions\n---------\n\n### get()\n\n export declare function get(): PluginTypes.Tracer;\n\nGet the previously created StackdriverTracer object. \n\n### start(config)\n\n export declare function start(config?: Config): PluginTypes.Tracer;\n\nStart the Stackdriver Trace Agent with the given configuration (if provided). This function should only be called once, and before any other modules are loaded. \n\n#### Example\n\ntrace.start();\n\nType Aliases\n------------\n\n### PluginTypes.Func\n\n export type Func\n\n### PluginTypes.GetHeaderFunction\n\n export type GetHeaderFunction = (key: string) =\u003e string[] | string | null | undefined;\n\n### PluginTypes.Patch\n\n export type Patch\n\n### PluginTypes.Plugin\n\n export type Plugin = Array\u003c\u003e\n\n### PluginTypes.SetHeaderFunction\n\n export type SetHeaderFunction = (key: string, value: string) =\u003e void;"]]