Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug #110

Merged
merged 2 commits into from
Oct 24, 2024
Merged

Debug #110

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading