Thanks to visit codestin.com
Credit goes to github.com

Skip to content

get_correlations return value should be immutable #1020

Closed
@ffe4

Description

@ffe4

According to the spec:

the returned value can be either an immutable collection or an immutable iterator

Currently, we return a dict (link):

correlations = get_value(_CORRELATION_CONTEXT_KEY, context=context)
if isinstance(correlations, dict):
    return correlations.copy()
return {}

This was mentioned in the PR but not definitively addressed #471 (comment), so I thought it might be worth bringing up again before GA.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions