Interface InstrumentedContext
- All Superinterfaces:
AccessValidator,CommandContext
- All Known Implementing Classes:
MessageContextImpl
A command context that is instrumented for use with metrics and tracing tooling.
- Since:
- 1.0
- Version:
- 1.0
- API Note:
- If also implementing
LazyContext, this API should be available before any methods are called.
-
Method Summary
Methods inherited from interface dev.sympho.modular_commands.api.permission.AccessValidator
hasAccess, validateMethods inherited from interface dev.sympho.modular_commands.api.command.context.CommandContext
belongs, belongs, getArgument, getArgument, getArgument, getCaller, getCallerMember, getChannel, getChannelId, getClient, getCommandInvocation, getContext, getEvent, getGuild, getGuildId, getInvocation, isPrivate, replies, reply, reply, reply, reply, reply, reply, requireArgument, requireArgument, requireArgument, requireContext, setContext, setContext
-
Method Details
-
getCommandId
Retrieves the ID of the invoked command.- Returns:
- The command ID.
-
tagType
Determines the value for thetype tag.- Returns:
- The tag.
-
addTags
Adds the common instrumentation tags for this context to a Mono.- Type Parameters:
T- The mono value type.- Parameters:
mono- The mono to add tags to.- Returns:
- The mono with tags added.
-