Comments (9)
fyi @Superskyyy
from skywalking.
Could you briefly describe your idea? Is it possible to dynamically update the value of sample based on the configuration file?
from skywalking.
@CodePrometheus I will achieve the function through following tasks:
- Add SW_AGENT_SAMPLE in skywalking/config.py
- Create a
sampling_service
withtry_sampling
,reset_sampling_factor
and other methods.try_sampling
will add one to a counter property of sampling_service.reset_sampling_factor
will clear the counter. - Modify skywalking/trace/context.py to check if
sampling_service.try_sampling
returns true every time before creating a new SpanContext. Ifsampling_service.try_sampling
returns false,get_context
should return NoopContext. - A scheduler thread will be started when initializing a sampling service, it will reset the sampling factor every 3 seconds.
Dynamically updating the value based on the configuration file or environment variables will not be implemented.
from skywalking.
Could you briefly describe your idea? Is it possible to dynamically update the value of sample based on the configuration file?
@CodePrometheus Could you be more specific about this? What do you mean based on file?
The above logic seems to be as same as Java agent sampling.
from skywalking.
@CodePrometheus Could you be more specific about this? What do you mean based on file?
The above logic seems to be as same as Java agent sampling.
Yes, the above logic is similar to the existing sample_n_per_3_secs
in Java agent. I want to refer to dynamic configuration, ref #6114
from skywalking.
I am not sure whether python agent supports dynamic configuration in the kernel already? @Superskyyy
from skywalking.
I am not sure whether python agent supports dynamic configuration in the kernel already? @Superskyyy
Currently, this capability is not implemented in python-agent.
from skywalking.
@tsonglew Are you going to add this too?
from skywalking.
@tsonglew Are you going to add this too?
Yes, I will create another mr for config change events
from skywalking.
Related Issues (20)
- [Feature] Support ARM64 build binary and images
- [SkyWalking UI] Introduce Flame Graph to the Trace Profiling HOT 2
- [Bug] [BanyanDB] Metrics breaks periodically HOT 4
- [Rover] eBPF Access Log Module can not work HOT 1
- [OAP-BanyanDB][Bug] Error on Creating Schema Concurrently
- Optimize the Trace widget for error nodes
- Skywalking Support for Quarkus native and Quarkus JVM
- I agree to follow this project's Code of Conduct HOT 2
- [Bug] Install docs out of date HOT 1
- [Feature] Add execution tracing with performance data for log and trace(native and zipkin) query
- [Feature] Can you document how much additional memory PHP-FPM needs to occupy after starting the Skywalking PHP agent?
- [Bug]Skywalking-oap run WARN [] - Unsupported metrics service_percentile HOT 1
- [Bug] When SW_AGENT_SAMPLE is set to less than 1, go-redis catches an err: go-redis :skyWalking failed to create exit span, got error: span type is wrong
- [Bug] ERROR: value too long for type character varying(200) Call getNextException to see other errors in the batch. HOT 7
- Improve performance of ContextManagerExtendService.createTraceContext() HOT 2
- [Bug] /tmp/go-build2704884287/b439/skywalking_enhance_producer_async_producer.go:22:2: could not import strings (open : no such file or directory) HOT 2
- [Bug] start BanyanDB uses the cluster mode error, register node timeout, retrying HOT 3
- [Feature] miss mvc-annotation-6.x-plugin HOT 1
- [Bug] ERROR: value too long for type character varying(250) HOT 1
- [Bug] Skywalking-client-js breaks native fetch implementation when using Request object with headers HOT 1
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 skywalking.