code: func (t *TraceServiceDefinition) GetSpanNameOk() (string, bool) {
  	if t == nil || t.SpanName == nil {
  		return "", false
  	}
  	return *t.SpanName, true
  }
docs: // GetSpanNameOk returns a tuple with the SpanName field if it's non-nil, zero value otherwise
  // and a boolean to check if the value has been set.