Skip to content

Commit

Permalink
Merge pull request #110 from metrico/debug
Browse files Browse the repository at this point in the history
Debug
  • Loading branch information
akvlad authored Oct 24, 2024
2 parents 0b1cea3 + 90ec04f commit fe02616
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion exporter/qrynexporter/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ func (e *logsExporter) pushLogsData(ctx context.Context, ld plog.Logs) error {
}

func batchSamplesAndTimeSeries(ctx context.Context, db clickhouse.Conn, samples []Sample, timeSeries []TimeSerie) error {
isCluster := ctx.Value("cluster").(bool)
isCluster := ctx.Value(clusterKey).(bool)
samplesBatch, err := db.PrepareBatch(ctx, samplesSQL(isCluster))
if err != nil {
return err
Expand Down
16 changes: 8 additions & 8 deletions extension/pyroscope/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ package pyroscope
import "go.opentelemetry.io/collector/component"

type Config struct {
ApplicationName string `json:"application_name"`
Tags map[string]string `json:"tags"`
ServerAddress string `json:"server_address"`
BasicAuth BasicAuth `json:"basic_auth"`
ProfileTypes []string `json:"profile_types"`
TenantID string `json:"tenant_id"`
ApplicationName string `mapstructure:"application_name"`
Tags map[string]string `mapstructure:"tags"`
ServerAddress string `mapstructure:"server_address"`
BasicAuth BasicAuth `mapstructure:"basic_auth"`
ProfileTypes []string `mapstructure:"profile_types"`
TenantID string `mapstructure:"tenant_id"`
}

type BasicAuth struct {
Username string `json:"username"`
Password string `json:"password"`
Username string `mapstructure:"username"`
Password string `mapstructure:"password"`
}

func defaultConfig() component.Config {
Expand Down

0 comments on commit fe02616

Please sign in to comment.