You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change adds support for tracing templating operations and function
calls using an OpenTelemetry tracer that is provided as an option to the
easytemplate engine.
// RunScript runs the provided script file, with the provided data, starting the template engine and templating any templates triggered from the script.
// RunScriptWithContext runs the provided script file, with the provided data, starting the template engine and templating any templates triggered from the script.
// RunTemplateWithContext runs the provided template file, with the provided data, starting the template engine and templating the provided template to a file.
@@ -215,7 +249,12 @@ func (e *Engine) RunTemplate(templateFile string, outFile string, data any) erro
215
249
216
250
// RunTemplateString runs the provided template file, with the provided data, starting the template engine and templating the provided template, returning the rendered result.
// RunTemplateStringWithContext runs the provided template file, with the provided data, starting the template engine and templating the provided template, returning the rendered result.
@@ -225,7 +264,12 @@ func (e *Engine) RunTemplateString(templateFile string, data any) (string, error
225
264
226
265
// RunTemplateStringInput runs the provided input template string, with the provided data, starting the template engine and templating the provided template, returning the rendered result.
// RunTemplateStringInputWithContext runs the provided input template string, with the provided data, starting the template engine and templating the provided template, returning the rendered result.
0 commit comments