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

Skip to content

Conversation

samyxdev
Copy link
Contributor

Hi,

I propose a change in the observe() decorator in order to, optionally set the observation name from the decorator instead of having to call langfuse_context.update_current_trace to do so.

What are your thoughts ?

@samyxdev samyxdev changed the title Adding observation_name as argument of observe() feat: adding observation_name as an optional argument of observe() Apr 26, 2024
@marcklingen
Copy link
Member

Looks good to me, cc @hassiebp who built the decorator to review

I'd probably use name instead of observation_name to keep things simple.

@marcklingen marcklingen requested a review from hassiebp April 29, 2024 17:07
@hassiebp
Copy link
Contributor

hassiebp commented May 3, 2024

Thanks a lot for your contribution, @samyxdev! I've picked up your work in this PR and will merge it in a co-authored commit by you 👍🏾

@hassiebp hassiebp closed this May 3, 2024
@samyxdev
Copy link
Contributor Author

samyxdev commented May 3, 2024

Amazing, thanks @hassiebp and @marcklingen !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants