Skip to content

Commit c511046

Browse files
Update opentelemetry-semantic-conventions requirement from 0.27 to 0.29 (#970)
* Update opentelemetry-semantic-conventions requirement from 0.27 to 0.29 Updates the requirements on [opentelemetry-semantic-conventions](https://github.com/open-telemetry/opentelemetry-rust) to permit the latest version. - [Release notes](https://github.com/open-telemetry/opentelemetry-rust/releases) - [Commits](open-telemetry/opentelemetry-rust@opentelemetry-semantic-conventions-0.27.0...opentelemetry-semantic-conventions-0.29.0) --- updated-dependencies: - dependency-name: opentelemetry-semantic-conventions dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * fix: otel example * bump: MSRV to 1.75.0 * bump: MSRV to 1.81.0 * fix: cargo fmt --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Maxime David <[email protected]>
1 parent 4c56306 commit c511046

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

.github/workflows/build-events.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
matrix:
1818
toolchain:
19-
- "1.71.1" # Current MSRV
19+
- "1.81.0" # Current MSRV
2020
- stable
2121
env:
2222
RUST_BACKTRACE: 1

.github/workflows/build-extension.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
matrix:
2424
toolchain:
25-
- "1.71.1" # Current MSRV
25+
- "1.81.0" # Current MSRV
2626
- stable
2727
env:
2828
RUST_BACKTRACE: 1

.github/workflows/build-runtime.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
strategy:
2222
matrix:
2323
toolchain:
24-
- "1.71.1" # Current MSRV
24+
- "1.81.0" # Current MSRV
2525
- stable
2626
env:
2727
RUST_BACKTRACE: 1

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ fn main() -> Result<(), Box<Error>> {
409409

410410
## Supported Rust Versions (MSRV)
411411

412-
The AWS Lambda Rust Runtime requires a minimum of Rust 1.71.1, and is not guaranteed to build on compiler versions earlier than that.
412+
The AWS Lambda Rust Runtime requires a minimum of Rust 1.81.0, and is not guaranteed to build on compiler versions earlier than that.
413413

414414
## Security
415415

lambda-runtime/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ hyper-util = { workspace = true, features = [
4141
] }
4242
lambda_runtime_api_client = { version = "0.11.1", path = "../lambda-runtime-api-client", default-features = false }
4343
miette = { version = "7.2.0", optional = true }
44-
opentelemetry-semantic-conventions = { version = "0.27", optional = true, features = ["semconv_experimental"] }
44+
opentelemetry-semantic-conventions = { version = "0.29", optional = true, features = ["semconv_experimental"] }
4545
pin-project = "1"
4646
serde = { version = "1", features = ["derive", "rc"] }
4747
serde_json = "^1"

lambda-runtime/src/layers/otel.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::{fmt::Display, future::Future, pin::Pin, task};
22

33
use crate::LambdaInvocation;
4-
use opentelemetry_semantic_conventions::trace as traceconv;
4+
use opentelemetry_semantic_conventions::attribute;
55
use pin_project::pin_project;
66
use tower::{Layer, Service};
77
use tracing::{field, instrument::Instrumented, Instrument};
@@ -76,9 +76,9 @@ where
7676
"Lambda function invocation",
7777
"otel.name" = req.context.env_config.function_name,
7878
"otel.kind" = field::Empty,
79-
{ traceconv::FAAS_TRIGGER } = &self.otel_attribute_trigger,
80-
{ traceconv::FAAS_INVOCATION_ID } = req.context.request_id,
81-
{ traceconv::FAAS_COLDSTART } = self.coldstart
79+
{ attribute::FAAS_TRIGGER } = &self.otel_attribute_trigger,
80+
{ attribute::FAAS_INVOCATION_ID } = req.context.request_id,
81+
{ attribute::FAAS_COLDSTART } = self.coldstart
8282
);
8383

8484
// After the first execution, we can set 'coldstart' to false

0 commit comments

Comments
 (0)