-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A way to suppress redis.encode.start/end custom events #1586
Comments
@paveljakov Are you using the Java agent 3.0.3-BETA.2? |
hey @paveljakov @MS-jgol, unfortunately the sampling overrides only apply to spans, and not to span events, so we will need to think of another way to address this |
@trask, Understood, thank you for your response. @MS-jgol, Just in case, here is our configuration json: {
"connectionString": "@CONNECTION_STRING@",
"role": {
"name": "document"
},
"customDimensions": {
"owner": "${USERNAME}",
"service.version": "${APP_VERSION}"
},
"selfDiagnostics": {
"destination": "console",
"level": "WARN"
},
"preview": {
"sampling": {
"overrides": [
{
"attributes": [
{
"key": "http.url",
"value": "https?://[^/]+/actuator/health",
"matchType": "regexp"
}
],
"percentage": 0
},
{
"attributes": [
{
"key": "db.statement",
"value": ".+\\sQRTZ_.+",
"matchType": "regexp"
}
],
"percentage": 0
},
{
"attributes": [
{
"key": "db.system",
"value": "postgresql",
"matchType": "strict"
},
{
"key": "db.statement",
"value": "",
"matchType": "strict"
}
],
"percentage": 0
},
{
"attributes": [
{
"key": "db.statement",
"value": "INFO",
"matchType": "strict"
},
{
"key": "db.system",
"value": "redis",
"matchType": "strict"
}
],
"percentage": 0
},
{
"attributes": [
{
"key": "ai.operation.name",
"value": "redis\\.encode\\.\\w+",
"matchType": "regexp"
}
],
"percentage": 0
}
]
},
"processors": [
{
"type": "span",
"include": {
"matchType": "strict",
"spanNames": [ "netty.request" ]
},
"name": {
"fromAttributes": [ "http.method", "http.url" ],
"separator": " "
}
},
{
"type": "span",
"include": {
"matchType": "regexp",
"attributes": [
{ "key": "http.method", "value": "" }
],
"spanNames": [ "^/" ]
},
"name": {
"toAttributes": {
"rules": [ "^(?<tempName>.*)$" ]
}
}
},
{
"type": "span",
"include": {
"matchType": "strict",
"attributes": [
{ "key": "tempName" }
]
},
"name": {
"fromAttributes": [ "http.method", "tempName" ],
"separator": " "
}
},
{
"type": "attribute",
"include": {
"matchType": "strict",
"attributes": [
{ "key": "tempName" }
]
},
"actions": [
{ "key": "tempName", "action": "delete" }
]
}
]
}
} We have tried some attributes listed in AI agent
|
These particular custom events were suppressed in 3.0.3 |
@trask thank you for addressing this! I have the same issue myself. |
yes it should 👍 |
Our applications currently generates a lot of custom
redis.encode.start
andredis.encode.end
events. Is there a way to suppress these custom events without disabling redis auto-collected telemetry?We have tried to use new sampling override functionality, but it didn't work.
We have tried rules using
db.statement
anddb.system
attributes:Also we have tried using
ai.operation.name
attribute:Nothing helped, these events are still being sent to AI.
Also maybe there is a way to get complete list of Span attributes that can be used for sampling overrides (to filter out such dependencies like periodic clustered Quatz job selects, etc.)?
The text was updated successfully, but these errors were encountered: