Closed changzee closed 1 month ago
I think it's this part:
The API MUST return a value that can be used as a Token to restore the previous Context
Java has something very similar, Context::makeCurrent
: https://github.com/open-telemetry/opentelemetry-java/blob/main/context/src/main/java/io/opentelemetry/context/Context.java#L201 (note that it returns a Scope
, which must be closed)
thanks for ur answer
I checked the official documentation and found that unlike other languages (go, python), PHP SDK has two more APIs for scope activation and deativation, which is an unnecessary burden for users. Is it a bad idea?