alibaba / alibaba/Sentinel

[Feature] Context supports carrying more kinds of context information

Open
#216 0 comments 0 reactions 0 assignees View on GitHub
kind/feature
Dominant language
Java
Stars
23.1k
Forks
8.1k
PR merge metrics
No merged PRs in 30d

Description

## Issue Description

Type: *feature request*

### Describe what feature you want

`Context` represents the context of a local invocation chain in Sentinel. In some circumstances, we may need more context-aware information (e.g. environment flag, business-relevant flag) to do flow control. But currently the `Context` only supports limited information (e.g. `origin`), so the `Context` should be improved to support carrying more kinds of context information.

An intuitive idea is to add a map in `Context` which represents pairs of context attachments. This can generalize all kinds of context information as a unified map, so that we don't have to put objects as fields of `Context`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.