This option controls the number of links contained in a single publish span.
Environment variable
This option is controlled by the OTEL_SPAN_LINK_COUNT_LIMIT environment variable. If the environment variable is unset or unparsable, it uses the user provided value, and then the default of 128.
[[["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-14 UTC."],[[["\u003cp\u003eThis page provides documentation for the \u003ccode\u003eMaxOtelLinkCountOption\u003c/code\u003e across multiple versions of a C++ library, ranging from version 2.11.0 to 2.37.0-rc.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMaxOtelLinkCountOption\u003c/code\u003e controls the maximum number of links allowed within a single publish span, which is relevant for monitoring through OpenTelemetry and Cloud Trace.\u003c/p\u003e\n"],["\u003cp\u003eThe default limit for the number of links in a span is 128, set by both Cloud Trace and OpenTelemetry.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOTEL_SPAN_LINK_COUNT_LIMIT\u003c/code\u003e environment variable controls this option, and if not set, will then use a user-provided value or default to 128.\u003c/p\u003e\n"]]],[],null,[]]