Skip to content

Sampling Override - Attributes resultCode #4570

@hjunior

Description

@hjunior

Is your feature request related to a problem? Please describe.
I'm trying to use Sampling Override to filter out Azure Blob with resultCode 409 while I continue receiving the resultCode 200.

Describe the solution you would like
I don't want result Code 409 to be sent to appInsights only resultCode 200. My goal is to use some configuration like:

option1:

{
"sampling": {
"percentage": 100,
"overrides": [
{
"telemetryType": "dependency",
"attributes": [
{ "key": "resultCode", "value": "409" }
],
"percentage": 0
}
]
}
}

option2:
{
"telemetryType": "dependency",
"attributes": [
{
"key": "server.address",
"value": ".blob.core.windows.net.",
"matchType": "regexp"
},
{
"key": "http.request.method",
"value": "POST",
"matchType": "strict"
},
{
"key": "error.type",
"value": "409",
"matchType": "strict"
}
],
"percentage": 0
}

Describe alternatives you have considered
Alternatively I tried to go with OpenTelemetry + Collector but it requires a lot of effort to migrate to.

Additional context
I'm currently using version 3.7.2 of Agent, Linux Environment, Azure Functions, Java21 and Gradle.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions