Skip to content

Commit a704839

Browse files
Merge branch 'master' into tobias-wilfert/feat/emit-outcome-for-skipped-fields
2 parents 1cd3f8f + 2333555 commit a704839

File tree

142 files changed

+3039
-1715
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+3039
-1715
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,18 @@
55
**Features**:
66

77
- Add configuration to allow high cardinality tags in metrics. ([#4805](https://github.com/getsentry/relay/pull/4805))
8+
- Make client sdk mandatory for profile sample v2. ([#4853](https://github.com/getsentry/relay/pull/4853))
89

910
**Internal**:
1011

12+
- Introduces a new processing pipeline and implements it for logs. ([#4777](https://github.com/getsentry/relay/pull/4777))
1113
- Produce spans to the items topic. ([#4735](https://github.com/getsentry/relay/pull/4735))
1214
- Update opentelemetry-proto and sentry-protos dependencies. ([#4847](https://github.com/getsentry/relay/pull/4847))
1315
- Take into account more types of tokens when doing AI cost calculation. ([#4840](https://github.com/getsentry/relay/pull/4840))
1416
- Use the `FiniteF64` type for measurements. ([#4828](https://github.com/getsentry/relay/pull/4828))
1517
- Derive a `sentry.description` attribute for V2 spans ([#4832](https://github.com/getsentry/relay/pull/4832))
18+
- Consider `gen_ai` also as AI span op prefix. ([#4859](https://github.com/getsentry/relay/pull/4859))
19+
- Change pii scrubbing on some AI attributes to optional ([#4860](https://github.com/getsentry/relay/pull/4860))
1620

1721
## 25.6.1
1822

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ strip = true
3030
dbg_macro = "warn"
3131
print_stdout = "warn"
3232
print_stderr = "warn"
33+
str_to_string = "warn"
3334

3435
[workspace.lints.rust]
3536
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(sentry)'] }
Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
#!/bin/bash
22

3-
/devinfra/scripts/checks/githubactions/checkruns.py \
4-
getsentry/relay \
5-
"${GO_REVISION_RELAY_REPO}" \
6-
"Integration Tests" \
7-
"Test All Features (ubuntu-latest)" \
8-
"Publish Relay to Internal AR (relay)" \
9-
"Publish Relay to Internal AR (relay-pop)" \
10-
"Upload build artifacts to gocd (relay, linux/amd64)" \
11-
"Upload build artifacts to gocd (relay, linux/arm64)" \
12-
"Upload build artifacts to gocd (relay-pop, linux/amd64)" \
13-
"Upload build artifacts to gocd (relay-pop, linux/arm64)" \
3+
echo 'Temporarily disabled because of: https://github.com/getsentry/devinfra-deployment-service/pull/695'
4+
5+
# /devinfra/scripts/checks/githubactions/checkruns.py \
6+
# getsentry/relay \
7+
# "${GO_REVISION_RELAY_REPO}" \
8+
# "Integration Tests" \
9+
# "Test All Features (ubuntu-latest)" \
10+
# "Publish Relay to Internal AR (relay)" \
11+
# "Publish Relay to Internal AR (relay-pop)" \
12+
# "Upload build artifacts to gocd (relay, linux/amd64)" \
13+
# "Upload build artifacts to gocd (relay, linux/arm64)" \
14+
# "Upload build artifacts to gocd (relay-pop, linux/amd64)" \
15+
# "Upload build artifacts to gocd (relay-pop, linux/arm64)" \

relay-cabi/src/glob.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ fn glob_match_bytes(value: &[u8], pat: &str, options: GlobOptions) -> bool {
9898
pat.replace('\\', "/"),
9999
)
100100
} else {
101-
(Cow::Borrowed(value), pat.to_string())
101+
(Cow::Borrowed(value), pat.to_owned())
102102
};
103103
let key = (options, pat);
104104
let mut cache = GLOB_CACHE.lock().unwrap_or_else(PoisonError::into_inner);

relay-cabi/src/processing.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,9 @@ pub unsafe extern "C" fn relay_validate_rule_condition(value: *const RelayStr) -
401401
let ret_val = match serde_json::from_str::<RuleCondition>(unsafe { (*value).as_str() }) {
402402
Ok(condition) => {
403403
if condition.supported() {
404-
"".to_string()
404+
"".to_owned()
405405
} else {
406-
"unsupported condition".to_string()
406+
"unsupported condition".to_owned()
407407
}
408408
}
409409
Err(e) => e.to_string(),

relay-cardinality/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ mod tests {
9797
#[test]
9898
fn test_cardinality_limit_json() {
9999
let limit = CardinalityLimit {
100-
id: "some_id".to_string(),
100+
id: "some_id".to_owned(),
101101
passive: false,
102102
report: false,
103103
window: SlidingWindow {

relay-cardinality/src/redis/limiter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ impl Limiter for RedisSetLimiter {
160160
continue;
161161
}
162162

163-
let id = &state.id().to_string();
163+
let id = &state.id().to_owned();
164164
let scopes = num_scopes_tag(&state);
165165
let results = metric!(
166166
timer(CardinalityLimiterTimers::Redis),

relay-config/src/upstream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ impl FromStr for UpstreamDescriptor<'static> {
146146

147147
Ok(UpstreamDescriptor {
148148
host: match url.host_str() {
149-
Some(host) => Cow::Owned(host.to_string()),
149+
Some(host) => Cow::Owned(host.to_owned()),
150150
None => return Err(UpstreamParseError::NoHost),
151151
},
152152
port: url.port().unwrap_or_else(|| scheme.default_port()),

relay-dynamic-config/src/defaults.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ pub fn add_span_metrics(project_config: &mut ProjectConfig) {
112112
/// These metrics are added to [`crate::GlobalConfig`] by the service and enabled
113113
/// by project configs in sentry.
114114
pub fn hardcoded_span_metrics() -> Vec<(GroupKey, Vec<MetricSpec>, Vec<TagMapping>)> {
115-
let is_ai = RuleCondition::glob("span.op", "ai.*");
115+
let is_ai = RuleCondition::glob("span.op", "ai.*") | RuleCondition::glob("span.op", "gen_ai.*");
116116

117117
let is_db = RuleCondition::eq("span.sentry_tags.category", "db")
118118
& !RuleCondition::glob("span.op", DISABLED_DATABASES)

0 commit comments

Comments
 (0)