Conditions | 4 |
Total Lines | 8 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | package logexporters |
||
10 | func ExporterFactory(name, endpoint string, insecure bool, urlpath string, headers map[string]string) (*otlplogs.Exporter, error) { |
||
11 | switch name { |
||
12 | case "otlp", "otlp-http": |
||
13 | return NewOTLP(endpoint, insecure, urlpath, headers) |
||
14 | case "otlp-grpc": |
||
15 | return nil, fmt.Errorf("%s log exporter is unsupported", name) |
||
16 | default: |
||
17 | return nil, fmt.Errorf("%s log exporter is unsupported", name) |
||
18 | } |
||
20 |