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\u003eThe webpage provides a comprehensive list of Google Cloud Pub/Sub C++ client library versions, ranging from version 2.11.0 up to the release candidate 2.37.0-rc, and including 2.35.0 as the current landing page.\u003c/p\u003e\n"],["\u003cp\u003eEach version listed links to documentation regarding \u003ccode\u003eMaxOtelLinkCountOption\u003c/code\u003e, allowing users to review changes and configurations related to OpenTelemetry span link limits.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMaxOtelLinkCountOption\u003c/code\u003e dictates the quantity of links within a publish span, and both Cloud Trace and Open Telemetry have default limits of 128 for the amount of links per span.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOTEL_SPAN_LINK_COUNT_LIMIT\u003c/code\u003e environment variable can be used to configure this option, otherwise the user-defined value or default of 128 will apply.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003estd::size_t\u003c/code\u003e is used as an alias type for this specific option.\u003c/p\u003e\n"]]],[],null,[]]