open-feature / open-feature/python-sdk-contrib

Add Span Hook

Open
#363 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
27
Forks
33
Avg merge
5h 7m
Merged PRs (30d)
9

Description

There's a TracingHook that emits span events during the flag evaluation lifecycle, but different vendors have varying support of events. The spec also specifies emitting spans as an option, so I think it's a good idea to so support.

The js-sdk supports this already, but the rest of the SDKs don't, so unsure if it's in-line with the spec.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing Python TracingHook and reading the linked OpenFeature signal-emission patterns. Compare its lifecycle events with the JavaScript SDK's tracing-hooks.ts implementation, then clarify which vendor-supported span events Python should expose. Done means the intended span-hook behavior is aligned with the specification and covered by project validation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.