Skip to content

Commit

Permalink
Add Opentelemetry module
Browse files Browse the repository at this point in the history
  • Loading branch information
rikatz committed Oct 17, 2024
1 parent ac58e66 commit 711847c
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 5 deletions.
7 changes: 2 additions & 5 deletions internal/ingress/controller/template/crossplane/crossplane.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,12 @@ func (c *Template) Write(conf *config.TemplateConfig) ([]byte, error) {
ErrorOnUnknownDirectives: true,
StopParsingOnError: true,
IgnoreDirectives: []string{"more_clear_headers",
"more_set_headers",
"opentelemetry_config",
"opentelemetry",
"opentelemetry_propagate",
"opentelemetry_trust_incoming_spans"}, // TODO: Add more_set_headers
"more_set_headers"}, // TODO: Add more_set_headers
DirectiveSources: []ngx_crossplane.MatchFunc{
ngx_crossplane.DefaultDirectivesMatchFunc,
ngx_crossplane.MatchLuaLatest,
extramodules.BrotliMatchFn,
extramodules.OpentelemetryMatchFn,
},
LexOptions: ngx_crossplane.LexOptions{
Lexers: []ngx_crossplane.RegisterLexer{lua.RegisterLexer()},
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 711847c

Please sign in to comment.