Skip to content

Comments

INSTA-51078 Filtering Internal Event Spans#839

Open
CagriYonca wants to merge 1 commit intomainfrom
internal-spans
Open

INSTA-51078 Filtering Internal Event Spans#839
CagriYonca wants to merge 1 commit intomainfrom
internal-spans

Conversation

@CagriYonca
Copy link
Contributor

No description provided.

@CagriYonca CagriYonca self-assigned this Feb 6, 2026
@CagriYonca CagriYonca force-pushed the internal-spans branch 2 times, most recently from 36fd507 to a06c130 Compare February 6, 2026 10:18
…tering mechanism

Signed-off-by: Cagri Yonca <cagri@ibm.com>
@CagriYonca CagriYonca marked this pull request as ready for review February 19, 2026 11:16
@CagriYonca CagriYonca requested a review from a team as a code owner February 19, 2026 11:16
@sonarqubecloud
Copy link

Comment on lines +137 to +138
if "INSTANA_ALLOW_INTERNAL_SPANS" not in os.environ:
self.add_internal_span_filter()
Copy link
Contributor

@GSVarsha GSVarsha Feb 23, 2026

Choose a reason for hiding this comment

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

Hey @CagriYonca, the overall structure looks good to me!
But can you explain the significance of this block? Its a bit unclear to me

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've included this block in case the customer wants to see internal spans.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we aren't supposed to refer this as INTERNAL spans because that could mean the concept of INTERMEDIATE (neither ENTRY nor EXIT but useful/ interesting internal application code) spans. After some contemplating, I remember something that we discussed earlier about whether we should not capture those internal tracer calls at all (existing code) or capture these urllib3/ requests calls to the agent and filter later (this new code).

Although the latter looks more structured I think functionality-wise the earlier could be better because we might try to communicate to the agent multiple times and creating a span each time might be expensive and not something the end-user would be interested (to view with an env var like INSTANA_ALLOW_INTERNAL_SPANS ).

I would like to know the team's thoughts on this, TIA!

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