Documentation ¶
Overview ¶
Copyright 2014 mqant Author. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Variables
- func Debug(msg string, fields ...zapcore.Field)
- func Debugf(msg string, args ...interface{})
- func Error(msg string, fields ...zapcore.Field)
- func Errorf(msg string, args ...interface{})
- func Fatal(msg string, fields ...zapcore.Field)
- func Fatalf(msg string, args ...interface{})
- func Info(msg string, fields ...zapcore.Field)
- func Infof(msg string, args ...interface{})
- func Options(opts ...zap.Option)
- func TInfo(span TraceSpan, format string, a ...interface{})
- func Warn(msg string, fields ...zapcore.Field)
- func Warnf(msg string, args ...interface{})
- type TraceSpan
- type TraceSpanImp
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Err = zap.Error Time = zap.Time Any = zap.Any Binary = zap.Binary Bool = zap.Bool ByteString = zap.ByteString Duration = zap.Duration Stack = zap.Stack String = zap.String Strings = zap.Strings Stringer = zap.Stringer Uint8 = zap.Uint8 Uint16 = zap.Uint16 Uint32 = zap.Uint32 Uint64 = zap.Uint64 Uint = zap.Uint Int8 = zap.Int8 Int16 = zap.Int16 Int32 = zap.Int32 Int64 = zap.Int64 Int = zap.Int Float32 = zap.Float32 Float64 = zap.Float64 )
Functions ¶
Types ¶
type TraceSpan ¶
type TraceSpan interface { // Trace is the root ID of the tree that contains all of the spans // related to this one. TraceId() string // Span is an ID that probabilistically uniquely identifies this // span. SpanId() string ExtractSpan() TraceSpan }
A SpanID refers to a single span.
func CreateTrace ¶
type TraceSpanImp ¶
func (*TraceSpanImp) ExtractSpan ¶
func (this *TraceSpanImp) ExtractSpan() TraceSpan
func (*TraceSpanImp) SpanId ¶
func (this *TraceSpanImp) SpanId() string
func (*TraceSpanImp) TraceId ¶
func (this *TraceSpanImp) TraceId() string
Click to show internal directories.
Click to hide internal directories.