Skip to content

Conversation

@cyberksh
Copy link

I'm using the FastAPI integration which exposes metrics like http.server.response.size which I want to drop.

The only way to do this seems to be to add a custom View and setting DropAggregation:

View(
    instrument_name="http.server.response.size",
    aggregation=DropAggregation()
)

@codecov
Copy link

codecov bot commented Nov 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

"""Experimental setting to add up the values of counter and histogram metrics in active spans."""

views: Sequence[View] = DEFAULT_VIEWS
"""Sequence of views to be enabled for metric collection"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be easy to keep the default views, something like this: MetricsOptions(views=MetricsOptions.DEFAULT_VIEWS + [...])

Please also expand this docstring and add tests.

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.

2 participants