Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

builtins: add builtin to retrieve the payload(s) for a span. #60616

Merged
merged 1 commit into from
Feb 18, 2021

Commits on Feb 18, 2021

  1. builtins: add builtin to retrieve the payload(s) for a span.

    The `crdb_internal.payloads_for_span` builtin retrieves all
    payloads for a given span ID, given that the span is part of an
    active trace. The payloads are returned in JSONB format. If the
    span is not found, or if the span does not have any payloads, the
    builtin returns an empty JSON object.
    
    With the appropriate usage of this builtin and the
    `crdb_internal.trace_id` builtin as shown in the `contention_event`
    logic test, all payloads for the current trace may be surfaced.
    
    Release note (sql change): add `payloads_for_span` builtin that
    takes in a span ID and returns its paylods in JSONB format. If
    the span is not found, or if the span does not have any payloads,
    the builtin returns an empty JSON object.
    angelapwen committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    96b24ae View commit details
    Browse the repository at this point in the history