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."],[[["This webpage lists the available versions of the `MaxOtelLinkCountOption` for Google Cloud Pub/Sub C++ client library, with the latest release candidate being version 2.37.0-rc."],["The `MaxOtelLinkCountOption` controls the number of links in a single publish span."],["Cloud Trace and OpenTelemetry both impose a limit of 128 links per span."],["The `OTEL_SPAN_LINK_COUNT_LIMIT` environment variable can be used to configure this option, otherwise the user provided value or the default of 128 is applied."],["The underlying type of this alias is `std::size_t`."]]],[]]