Skip to content

Commit

Permalink
Merge branch 'main' into pull-364
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitnayan committed Sep 8, 2024
2 parents 22d9183 + d1401eb commit 46af93b
Show file tree
Hide file tree
Showing 19 changed files with 772 additions and 128 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: ci

on:
pull_request:
branches:
- "*"

jobs:
test:
uses: signoz/primus.workflows/.github/workflows/go-test.yaml@main
secrets: inherit
with:
PRIMUS_REF: main
GO_TEST_CONTEXT: ./...
fmt:
uses: signoz/primus.workflows/.github/workflows/go-fmt.yaml@main
secrets: inherit
with:
PRIMUS_REF: main
lint:
uses: signoz/primus.workflows/.github/workflows/go-lint.yaml@main
secrets: inherit
with:
PRIMUS_REF: main
49 changes: 0 additions & 49 deletions .github/workflows/codeql-analysis.yaml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/lint-and-test.yaml

This file was deleted.

1 change: 1 addition & 0 deletions exporter/clickhouselogsexporter/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ type Config struct {
DSN string `mapstructure:"dsn"`
// Docker Multi Node Cluster is a flag to enable the docker multi node cluster. Default is false.
DockerMultiNodeCluster bool `mapstructure:"docker_multi_node_cluster" default:"false"`
UseNewSchema bool `mapstructure:"use_new_schema" default:"false"`
}

var (
Expand Down
6 changes: 5 additions & 1 deletion exporter/clickhouselogsexporter/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestLoadConfig(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, cfg)

assert.Equal(t, len(cfg.Exporters), 2)
assert.Equal(t, len(cfg.Exporters), 3)

defaultCfg := factory.CreateDefaultConfig()
defaultCfg.(*Config).DSN = "tcp://127.0.0.1:9000/?dial_timeout=5s"
Expand All @@ -64,4 +64,8 @@ func TestLoadConfig(t *testing.T) {
QueueSize: 100,
},
})

defaultCfg.(*Config).UseNewSchema = true
r2 := cfg.Exporters[component.NewIDWithName(component.MustNewType(typeStr), "new_schema")]
assert.Equal(t, r2, defaultCfg)
}
Loading

0 comments on commit 46af93b

Please sign in to comment.