Documentation
¶
Index ¶
- Constants
- type Config
- type Metrics
- type Plugin
- func (p *Plugin) Init(cfg config.Configurer, log *zap.Logger, server server.Server) error
- func (p *Plugin) MetricsCollector() []prom.Collector
- func (p *Plugin) Name() string
- func (p *Plugin) RPC() any
- func (p *Plugin) Reset() error
- func (p *Plugin) ResetAP() error
- func (p *Plugin) SedID() uint64
- func (p *Plugin) Serve() chan error
- func (p *Plugin) Stop() error
- func (p *Plugin) Workers() []*process.State
- type Prometheus
- type RecordHeartbeatRequest
- type RecordHeartbeatResponse
- type Statsd
- type StatsdReporterConfig
- type TLS
Constants ¶
View Source
const ( // PluginName defines public service name. PluginName string = "temporal" // RrMode env variable key RrMode string = "RR_MODE" // RrCodec env variable key RrCodec string = "RR_CODEC" // RrCodecVal - codec name, should be in sync with the PHP-SDK RrCodecVal string = "protobuf" )
View Source
const (
MetricsTypeSummary string = "summary"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v1.1.0
type Config struct {
Metrics *Metrics `mapstructure:"metrics"`
Activities *pool.Config `mapstructure:"activities"`
TLS *TLS `mapstructure:"tls, omitempty"`
Address string `mapstructure:"address"`
Namespace string `mapstructure:"namespace"`
CacheSize int `mapstructure:"cache_size"`
}
Config of the temporal client and dependent services.
func (*Config) InitDefault ¶ added in v1.1.0
type Metrics ¶ added in v1.1.0
type Metrics struct {
Driver string `mapstructure:"driver"`
Prometheus *Prometheus `mapstructure:"prometheus"`
Statsd *Statsd `mapstructure:"statsd"`
}
type Plugin ¶ added in v1.1.0
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) MetricsCollector ¶ added in v1.4.10
type Prometheus ¶ added in v1.6.0
type RecordHeartbeatRequest ¶ added in v1.1.0
type RecordHeartbeatRequest struct {
TaskToken []byte `json:"taskToken"`
Details []byte `json:"details"`
}
RecordHeartbeatRequest sent by activity to record current state.
type RecordHeartbeatResponse ¶ added in v1.1.0
type RecordHeartbeatResponse struct {
Canceled bool `json:"canceled"`
}
RecordHeartbeatResponse sent back to the worker to indicate that activity was canceled.
type Statsd ¶ added in v1.6.0
type Statsd struct {
// The host and port of the statsd server
HostPort string `yaml:"host_port" validate:"nonzero"`
// The prefix to use in reporting to statsd
Prefix string `yaml:"prefix" validate:"nonzero"`
// FlushInterval is the maximum interval for sending packets.
// If it is not specified, it defaults to 1 second.
FlushInterval time.Duration `yaml:"flush_interval"`
// FlushBytes specifies the maximum udp packet size you wish to send.
// If FlushBytes is unspecified, it defaults to 1432 bytes, which is
// considered safe for local traffic.
FlushBytes int `yaml:"flush_bytes"`
// Reporter allows additional configuration of the stats reporter, e.g. with custom tagging options.
Reporter *StatsdReporterConfig `yaml:"reporter"`
}
ref:https://github.dev/temporalio/temporal/common/metrics/config.go:79
type StatsdReporterConfig ¶ added in v1.6.0
type StatsdReporterConfig struct {
// TagSeparator allows tags to be appended with a separator. If not specified tag keys and values
// are embedded to the stat name directly.
TagSeparator string `yaml:"tag_separator"`
}
Click to show internal directories.
Click to hide internal directories.