Comments (7)
You might already be aware of this but I couldn't find any note or discussion, so this is here at least for posterity's sake.
I do wonder though why it even compiled, would have expected this to pop up sooner (but I don't know anything about tokio or rustflags).
from lemmy.
Right you need to set the mentioned env var, Im adding a comment. Here the documentation.
from lemmy.
Yeah, I also added RUSTFLAGS=
(empty by default) into the Dockerfile so that this can be propagated from build-args, I could PR that if you want.
from lemmy.
Yes sure.
from lemmy.
fwiw putting the opentelemetry
stuff behind the console
feature doesn't make a lot of sense. Even though they both rely on tracing, they are different things and serve different purposes
from lemmy.
have been digging into this whole thing for last few hours and there seem to be two other problems (I might be blind though):
Minor thing: when enabling OTLP tracing, you have to set RUST_LOG to more verbose values as it also filters out what is sent to the trace consumer (jaeger), this in turn makes console output too verbose (with stuff that I am already getting in the consumer).
Adding some kind of opentelemetry_log
field into the config to control this separately would be nice.
The code in question.
Bigger thing: HTTP Tracing across services does not work.
The incoming trace_id is ignored (proxy sets uber-trace-id
header, https://docs.rs/tracing-actix-web/latest/tracing_actix_web/#trace-id, not yet sure how to apply this in root_span_builder - for now I just enabled "tracing-actix-web/opentelemetry_0_16"
feature, I am probably missing something).
Requests to pict-rs should also pass the trace id, haven't checked it yet but jaeger does not show connections between lemmy and pict-rs so it's probably also not configured in reqwest(-tracing) (?)
EDIT: I wasn't able to resolve the above issue with trace_ids. The problem is definitely somewhere in
lemmy/src/root_span_builder.rs
Line 13 in 2fd8106
Using
tracing::info_span
instead of tracing_actix_web::root_span
does not handle extracting trace_id (?) but multiple ways to include it in the span did not work, at one moment it worked for requests to pict-rs (could trace requests from traefik load balancer linked to them) but not for lemmy itself, bummer.from lemmy.
Im not familiar with any of this stuff, improvements welcome!
from lemmy.
Related Issues (20)
- Question: use Lemmy instead of join-lemmy.org/news HOT 5
- [Bug]: NodeInfo implementation doesn't meet the 2.1 specification (metadata property)
- [Bug]: Profile picture repeatedly deleted on 0.19.4 instance HOT 2
- Discussion / article only filter (no image / meme posts)
- Return a list of posts when creating a post HOT 2
- [Bug]: Site logo disappearing HOT 7
- [Bug]: Spam on dead instances HOT 5
- Dont use `unimplemented!()` macro as it causes federation breakages.
- When searching for communities, the search query should also search through communitiy sidebards, rather than soley the communtity name HOT 2
- Store demographic info in Person
- [Bug]: Lemmy post deletions (by user) do not federate to mastodon.
- Remove Person from CommunityBlockView/PersonBlockView/InstanceBlockView
- Error connecting to postgres HOT 4
- [Bug]: Unable to connect to TLS Postgres Pool HOT 1
- one-way "cross-posted to" indicator, does not show the original cross-post if it was from a bot HOT 4
- Stop storing settings specific to a UI HOT 4
- Orthogonal search filters
- [Bug]: address decodes incorrectly in the URL field for the new post submission
- Use associated type bounds in complicated `where` clauses
- [Bug]: Comments disassociated with post HOT 2
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 lemmy.