| 程序包 | 说明 |
|---|---|
| org.apache.shenyu.plugin.logging.common.config | |
| org.apache.shenyu.plugin.logging.common.sampler | |
| org.apache.shenyu.plugin.logging.common.utils |
| 限定符和类型 | 方法和说明 |
|---|---|
Sampler |
GenericGlobalConfig.getSampler()
get sampler.
|
Sampler |
GenericApiConfig.getSampler()
get sampler.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
GenericGlobalConfig.setSampler(Sampler sampler)
set sampler.
|
void |
GenericApiConfig.setSampler(Sampler sampler)
set sampler.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
CountSampler
used for sample log.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static Sampler |
Sampler.ALWAYS_SAMPLE |
static Sampler |
Sampler.NEVER_SAMPLE |
| 限定符和类型 | 方法和说明 |
|---|---|
static Sampler |
CountSampler.create(java.lang.String probability)
create a sampler instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Sampler |
LogCollectConfigUtils.setSampler(java.lang.String sampler)
set api sample.
|
Copyright © 2026 The Apache Software Foundation. All rights reserved.