Comments (3)
Hi @cw-kajiwara - ADOT doesn't currently support rust, but it supports Go applications using a custom runtime - essentially the lambda layer only contains a telemetry collector but the app needs to have instrumentation built in due to the lack of auto instrumentation. This will be the same for Rust.
The docs for ADOT Lambda Go and OpenTelemetry rust may be able to get you started.
https://aws-otel.github.io/docs/getting-started/lambda/lambda-go#lambda-layer
https://docs.rs/opentelemetry/latest/opentelemetry/
from aws-otel-lambda.
Hi @anuraaga. Thank you very much for your guidance!
As you taught me, adding aws-otel-collector-amd64-ver-0-43-1:1
to my lambda function worked for me!
I saw the spans sent from my application appeared in log 👍
from aws-otel-lambda.
Hello all,
I tried using the "aws-otel-collector-arm64-ver-0-56-0"
I can see my spans in CloudWatch but I am pretty sure I miss something because I don't see any span in x-ray
fn init_tracer() -> sdkTracer {
global::set_text_map_propagator(XrayPropagator::
// Install stdout exporter pipeline to be able to retrieve the e collected spans.
// For the demonstration, use `Sampler::AlwaysOn` sampler to sample all traces. In a production
// application, use `Sampler::ParentBased` or `Sampler::TraceIdRatioBased` with a desired ratio.
stdout::new_pipeline()
.with_trace_config(
config()
.with_sampler(Sampler::AlwaysOn)
.with_id_generator(XrayIdGenerator::default()),
)
.install_simple()
}
#[tokio::main]
async fn main() -> Result<(), Error> {
let tracer = init_tracer();
tracing_subscriber::fmt()
.with_ansi(false)
.without_time()
.with_max_level(tracing_subscriber::filter::LevelFilter::INFO)
.init();
let config = aws_config::load_from_env().await;
let dynamodb_client = aws_sdk_dynamodb::Client::new(&config);
// other stuff
lambda_http::run(service_fn(|event: Request| {
tracer.in_span("root", |cx| {
my_handler(event, cx)
})
})).await?;
global::shutdown_tracer_provider();
Ok(())
}
pub async fn my_handler(event: Request, ctx: Context) -> Result<impl IntoResponse, Error> {
ctx.span().add_event("calling dyanmodb", vec![]);
//dynamodb query
ctx.spaIt).add_event("doing something else", vec![]);
}
it is possible to see a working example that maybe instrument one of the aws services? (like DynamoDB).
from aws-otel-lambda.
Related Issues (20)
- Steps to build and download a private Python lambda layer as a local .zip or .tar file? HOT 1
- Trace is broken in Lambda Java17 Runtime HOT 2
- Traces are not flushed to the server before the lambda terminates HOT 6
- Unable to access Lambda layer for Python with x86_64 architecture HOT 5
- docs: document of supported python version is old HOT 1
- 53612: bind: address already in use HOT 3
- [nodejs lambda layer] no metrics is exported to cloudwatch logs HOT 2
- Decouple processor needs to be added HOT 9
- Does not work with custom metrics HOT 2
- Request to include the awskinesisexporter HOT 2
- awsemf exporter won't create any log group, nor generating any metrics HOT 4
- Public ARN of aws-otel-nodejs-amd64 v1.18.1 is too large HOT 2
- Support for ES6 imports and exports when using aws-otel-nodejs lambda layer HOT 3
- Which version of the collector image contains https://github.com/open-telemetry/opentelemetry-lambda/pull/310? HOT 1
- ADOT Collector Dropping Exports in Lambda Environment HOT 3
- Question - ADOT Lambda Layer Nodejs - SQS AWSTraceHeader is not propogated to Lambda HOT 1
- mongodb spans not generated HOT 1
- Spans are broken if not using X-RAY
- ADOT Lambda Layer local testing HOT 1
- Unable to get tracecontext or trace-id using SDK API | NodeJs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-otel-lambda.