1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-02 08:52:21 +02:00

set vtype for newVar (#56)

Signed-off-by: Wei Fu <fuweid89@gmail.com>
This commit is contained in:
Wei Fu 2019-07-16 13:08:12 -04:00 committed by rghetia
parent eed647d11f
commit eba4b51b81

View File

@ -40,6 +40,7 @@ func Register(name string, vtype Type, opts ...Option) Variable {
func newVar(name string, vtype Type, opts ...Option) Variable {
v := Variable{
Name: name,
Type: vtype,
}
for _, o := range opts {
v = o(v)