Interface InstrumentedContext
- All Superinterfaces:
dev.sympho.bot_utils.access.AccessContext,dev.sympho.bot_utils.access.AccessValidator,dev.sympho.bot_utils.access.ChannelAccessContext,dev.sympho.bot_utils.access.ChannelAccessValidator,dev.sympho.bot_utils.event.ChannelEventContext,CommandContext,dev.sympho.bot_utils.event.EventContext,dev.sympho.bot_utils.event.RepliableContext
- 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.bot_utils.access.AccessContext
asGuild, guild, guildId, isPrivate, userMethods inherited from interface dev.sympho.bot_utils.access.ChannelAccessContext
asUser, channelIdMethods inherited from interface dev.sympho.bot_utils.event.ChannelEventContext
belongs, belongs, belongs, belongs, hasAccess, hasAccess, validate, validatorMethods inherited from interface dev.sympho.modular_commands.api.command.context.CommandContext
caller, callerMember, callerMember, channel, commandInvocation, getArgument, getArgument, getArgument, getContext, invocation, member, member, requireArgument, requireArgument, requireArgument, requireContext, setContext, setContextMethods inherited from interface dev.sympho.bot_utils.event.EventContext
client, event, validateMethods inherited from interface dev.sympho.bot_utils.event.RepliableContext
replies, reply, reply, reply, reply, reply, reply, reply
-
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.
-